summaryrefslogtreecommitdiff
path: root/drivers/hte
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-11-17 15:17:29 +0800
committerDipen Patel <dipenp@nvidia.com>2023-04-26 15:44:19 -0700
commit9e0c2d40a40733fba605ff47a08f3eba2fab4fbb (patch)
tree00f2ba94c952e87ee51fc384037554e207932bde /drivers/hte
parente078180d66848a6a890daf0a3ce28dc43cc66790 (diff)
downloadlwn-9e0c2d40a40733fba605ff47a08f3eba2fab4fbb.tar.gz
lwn-9e0c2d40a40733fba605ff47a08f3eba2fab4fbb.zip
hte: Use device_match_of_node()
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>
Diffstat (limited to 'drivers/hte')
-rw-r--r--drivers/hte/hte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hte/hte.c b/drivers/hte/hte.c
index 9f3221462e75..67c15724ee78 100644
--- 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;
}