Commit 9e0c2d40 authored by ye xingchen's avatar ye xingchen Committed by Dipen Patel

hte: Use device_match_of_node()

Replace the open-code with device_match_of_node().
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Acked-by: default avatarDipen Patel <dipenp@nvidia.com>
Signed-off-by: default avatarDipen Patel <dipenp@nvidia.com>
parent e078180d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment