diff options
Diffstat (limited to 'drivers/macintosh/windfarm_lm75_sensor.c')
-rw-r--r-- | drivers/macintosh/windfarm_lm75_sensor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c index ab4d1b63f63e..a0fabf3c2008 100644 --- a/drivers/macintosh/windfarm_lm75_sensor.c +++ b/drivers/macintosh/windfarm_lm75_sensor.c | |||
@@ -188,10 +188,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter) | |||
188 | if (loc == NULL || addr == 0) | 188 | if (loc == NULL || addr == 0) |
189 | continue; | 189 | continue; |
190 | /* real lm75 */ | 190 | /* real lm75 */ |
191 | if (device_is_compatible(dev, "lm75")) | 191 | if (of_device_is_compatible(dev, "lm75")) |
192 | wf_lm75_create(adapter, addr, 0, loc); | 192 | wf_lm75_create(adapter, addr, 0, loc); |
193 | /* ds1775 (compatible, better resolution */ | 193 | /* ds1775 (compatible, better resolution */ |
194 | else if (device_is_compatible(dev, "ds1775")) | 194 | else if (of_device_is_compatible(dev, "ds1775")) |
195 | wf_lm75_create(adapter, addr, 1, loc); | 195 | wf_lm75_create(adapter, addr, 1, loc); |
196 | } | 196 | } |
197 | return 0; | 197 | return 0; |