of: Always use 'struct device.of_node' to get device node pointer.
[safe/jmp/linux-2.6] / arch / powerpc / platforms / 83xx / suspend.c
index 4380534..aa0b764 100644 (file)
@@ -321,7 +321,7 @@ static struct platform_suspend_ops mpc83xx_suspend_ops = {
 static int pmc_probe(struct of_device *ofdev,
                      const struct of_device_id *match)
 {
-       struct device_node *np = ofdev->node;
+       struct device_node *np = ofdev->dev.of_node;
        struct resource res;
        struct pmc_type *type = match->data;
        int ret = 0;