]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/windfarm_lm75_sensor.c
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus...
[linux-2.6] / drivers / macintosh / windfarm_lm75_sensor.c
index 423bfa2432c02ad4939219c40e2a177f33cf0f8c..ab4d1b63f63e673c70f3321a837cc4f029a380c4 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/init.h>
 #include <linux/wait.h>
 #include <linux/i2c.h>
-#include <linux/i2c-dev.h>
 #include <asm/prom.h>
 #include <asm/machdep.h>
 #include <asm/io.h>
@@ -177,7 +176,7 @@ static int wf_lm75_attach(struct i2c_adapter *adapter)
        for (dev = NULL;
             (dev = of_get_next_child(busnode, dev)) != NULL;) {
                const char *loc =
-                       get_property(dev, "hwsensor-location", NULL);
+                       of_get_property(dev, "hwsensor-location", NULL);
                u8 addr;
 
                /* We must re-match the adapter in order to properly check