aboutsummaryrefslogtreecommitdiff
path: root/drivers/hte/hte.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hte/hte.c')
-rw-r--r--drivers/hte/hte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hte/hte.c b/drivers/hte/hte.c
index 7c3b4476f890..67c15724ee78 100644
--- a/drivers/hte/hte.c
+++ b/drivers/hte/hte.c
@@ -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;
}
@@ -518,7 +518,7 @@ static struct hte_device *hte_of_get_dev(struct device *dev,
np = dev->of_node;
- if (!of_find_property(np, "timestamp-names", NULL)) {
+ if (!of_property_present(np, "timestamp-names")) {
/* Let hte core construct it during request time */
desc->attr.name = NULL;
} else {