Skip to content

Commit 9e0c2d4

Browse files
ye xingchenpateldipen1984-nv
authored andcommitted
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>
1 parent e078180 commit 9e0c2d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hte/hte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ static struct hte_device *of_node_to_htedevice(struct device_node *np)
444444

445445
list_for_each_entry(gdev, &hte_devices, list)
446446
if (gdev->chip && gdev->chip->dev &&
447-
gdev->chip->dev->of_node == np) {
447+
device_match_of_node(gdev->chip->dev, np)) {
448448
spin_unlock(&hte_lock);
449449
return gdev;
450450
}

0 commit comments

Comments
 (0)