ti: use of_property_read_bool() instead of of_get_property
PATCH 1/1 ti: use of_property_read_bool() instead of of_get_property
From: Wang Qing <[email protected]>
"qalloc-by-id" has no specific content, use more helper function of_property_read_bool() instead of of_get_property()
Signed-off-by Wang Qing <[email protected]>
--- drivers/soc/ti/knav_qmss_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
@@ -1266,7 +1266,7 @@ static int knav_setup_queue_range(struct knav_device *kdev,if (range->num_irqs) range->flags |=RANGE_HAS_IRQ ; -if (of_get_property (node,"qalloc-by-id" ,NULL )) +if (of_property_read_bool (node,"qalloc-by-id" )) range->flags |=RANGE_RESERVED ;if (of_get_property (node,"accumulator" ,NULL )) {
Signature · 1 line
2.7.4