mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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>
This commit is contained in:
parent
e078180d66
commit
9e0c2d40a4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user