Messages in this thread Patch in this message | | | From | Qing Wang <> | Subject | [PATCH] ti: use of_property_read_bool() instead of of_get_property | Date | Thu, 31 Mar 2022 05:09:13 -0700 |
| |
From: Wang Qing <wangqing@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@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
| |