projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e078180
)
hte: Use device_match_of_node()
author
ye xingchen
<ye.xingchen@zte.com.cn>
Thu, 17 Nov 2022 07:17:29 +0000
(15:17 +0800)
committer
Dipen Patel
<dipenp@nvidia.com>
Wed, 26 Apr 2023 22:44:19 +0000
(15:44 -0700)
Replace the open-code with device_match_of_node().
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
drivers/hte/hte.c
patch
|
blob
|
history
diff --git
a/drivers/hte/hte.c
b/drivers/hte/hte.c
index 9f3221462e75140ad6cc399c9f1b91ffbd87c437..67c15724ee78e3e473377b4d35ffc09a5f67cf5d 100644
(file)
--- a/
drivers/hte/hte.c
+++ b/
drivers/hte/hte.c
@@
-444,7
+444,7
@@
static struct hte_device *of_node_to_htedevice(struct device_node *np)
list_for_each_entry(gdev, &hte_devices, list)
if (gdev->chip && gdev->chip->dev &&
-
gdev->chip->dev->of_node == np
) {
+
device_match_of_node(gdev->chip->dev, np)
) {
spin_unlock(&hte_lock);
return gdev;
}