Skip to content

Commit

Permalink
hte: Use device_match_of_node()
Browse files Browse the repository at this point in the history
Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <[email protected]>
Acked-by: Dipen Patel <[email protected]>
Signed-off-by: Dipen Patel <[email protected]>
  • Loading branch information
ye xingchen authored and pateldipen1984-nv committed Apr 26, 2023
1 parent e078180 commit 9e0c2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hte/hte.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9e0c2d4

Please sign in to comment.