[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250331201425296l4h98bZjxHzs08fdvHrGO@zte.com.cn>
Date: Mon, 31 Mar 2025 20:14:25 +0800 (CST)
From: <shao.mingyin@....com.cn>
To: <nm@...com>
Cc: <yang.yang29@....com.cn>, <xu.xin16@....com.cn>, <ye.xingchen@....com.cn>,
<ssantosh@...nel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <tang.dongxing@....com.cn>
Subject: [PATCH] soc: ti: k3-ringacc: Use device_match_of_node()
From: Tang Dongxing <tang.dongxing@....com.cn>
Replace the open-code with device_match_of_node().
Signed-off-by: Tang Dongxing <tang.dongxing@....com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@....com.cn>
---
drivers/soc/ti/k3-ringacc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/ti/k3-ringacc.c b/drivers/soc/ti/k3-ringacc.c
index 82a15cad1c6c..7602b8a909b0 100644
--- a/drivers/soc/ti/k3-ringacc.c
+++ b/drivers/soc/ti/k3-ringacc.c
@@ -1291,7 +1291,7 @@ struct k3_ringacc *of_k3_ringacc_get_by_phandle(struct device_node *np,
mutex_lock(&k3_ringacc_list_lock);
list_for_each_entry(entry, &k3_ringacc_list, list)
- if (entry->dev->of_node == ringacc_np) {
+ if (device_match_of_node(entry->dev, ringacc_np)) {
ringacc = entry;
break;
}
--
2.25.1
Powered by blists - more mailing lists