Skip to contentSkip to conversation

ti: use of_property_read_bool() instead of of_get_property

PATCH New Qing Wang 1 participant 1 message Mar 31, 2022 TI Keystone multicore navigator drivers

lore
Share & tools
lore

Qing Wang

author
#0 lore raw

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()

---
 drivers/soc/ti/knav_qmss_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
index 2ac3856..d385f63
@@ -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