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:
Родитель
e078180d66
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче