[PATCH] ti: use of_property_read_bool() instead of of_get_property
Qing Wang
wangqing at vivo.com
Thu Mar 31 05:09:13 PDT 2022
From: Wang Qing <wangqing at vivo.com>
"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 <wangqing at vivo.com>
---
drivers/soc/ti/knav_qmss_queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index 2ac3856..d385f63
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -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)) {
--
2.7.4
More information about the linux-arm-kernel
mailing list