aboutsummaryrefslogtreecommitdiff
path: root/drivers/hwmon/ams/ams-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ams/ams-i2c.c')
-rw-r--r--drivers/hwmon/ams/ams-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ams/ams-i2c.c b/drivers/hwmon/ams/ams-i2c.c
index 485d333bcb3..ccd5cefae90 100644
--- a/drivers/hwmon/ams/ams-i2c.c
+++ b/drivers/hwmon/ams/ams-i2c.c
@@ -276,7 +276,7 @@ int __init ams_i2c_init(struct device_node *np)
ams_info.bustype = BUS_I2C;
/* look for bus either using "reg" or by path */
- prop = get_property(ams_info.of_node, "reg", NULL);
+ prop = of_get_property(ams_info.of_node, "reg", NULL);
if (!prop) {
result = -ENODEV;