X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fhwmon%2Fams%2Fams-i2c.c;h=957760536a4cf46d7c387087e3fa6ee6134a78ef;hb=68f823de3f1916cc0694376330c08377706b877d;hp=5c70f2e3022ee646f21775a767c5cb1079f2c63d;hpb=63232dcd555d60d70ce8e09b53c8ef8e4a49a3f9;p=linux-2.6 diff --git a/drivers/hwmon/ams/ams-i2c.c b/drivers/hwmon/ams/ams-i2c.c index 5c70f2e302..957760536a 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;