of: Always use 'struct device.of_node' to get device node pointer.
[deliverable/linux.git] / drivers / sbus / char / envctrl.c
index aa2b60a868baf0314b85591e3a7bb7fad837fd61..a5fe20faf4f778dc0535279a8178fc0c655d5ba4 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/miscdevice.h>
 #include <linux/kmod.h>
 #include <linux/reboot.h>
+#include <linux/slab.h>
 #include <linux/smp_lock.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
@@ -1042,7 +1043,7 @@ static int __devinit envctrl_probe(struct of_device *op,
                return -ENOMEM;
 
        index = 0;
-       dp = op->node->child;
+       dp = op->dev.of_node->child;
        while (dp) {
                if (!strcmp(dp->name, "gpio")) {
                        i2c_childlist[index].i2ctype = I2C_GPIO;
This page took 0.027143 seconds and 5 git commands to generate.