diff options
Diffstat (limited to 'drivers/macintosh/windfarm_max6690_sensor.c')
-rw-r--r-- | drivers/macintosh/windfarm_max6690_sensor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_max6690_sensor.c b/drivers/macintosh/windfarm_max6690_sensor.c index eae1189d6c41..eaa74afa175b 100644 --- a/drivers/macintosh/windfarm_max6690_sensor.c +++ b/drivers/macintosh/windfarm_max6690_sensor.c | |||
@@ -134,7 +134,7 @@ static int wf_max6690_attach(struct i2c_adapter *adapter) | |||
134 | if (!device_is_compatible(dev, "max6690")) | 134 | if (!device_is_compatible(dev, "max6690")) |
135 | continue; | 135 | continue; |
136 | addr = pmac_i2c_get_dev_addr(dev); | 136 | addr = pmac_i2c_get_dev_addr(dev); |
137 | loc = get_property(dev, "hwsensor-location", NULL); | 137 | loc = of_get_property(dev, "hwsensor-location", NULL); |
138 | if (loc == NULL || addr == 0) | 138 | if (loc == NULL || addr == 0) |
139 | continue; | 139 | continue; |
140 | printk("found max6690, loc=%s addr=0x%02x\n", loc, addr); | 140 | printk("found max6690, loc=%s addr=0x%02x\n", loc, addr); |