of: Always use 'struct device.of_node' to get device node pointer.
[deliverable/linux.git] / drivers / sbus / char / envctrl.c
index c6e2eff19409c6cd3cdf6c4bcbe75bd77cccc3fc..a5fe20faf4f778dc0535279a8178fc0c655d5ba4 100644 (file)
@@ -1043,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.044834 seconds and 5 git commands to generate.