of: Always use 'struct device.of_node' to get device node pointer.
[deliverable/linux.git] / drivers / leds / leds-gpio.c
index c6e4b772b7575206f9cb9a093b682f5060d2df82..a77a23e783db5cdb8f565bc75d2e52b646332b69 100644 (file)
@@ -211,7 +211,7 @@ struct gpio_led_of_platform_data {
 static int __devinit of_gpio_leds_probe(struct of_device *ofdev,
                                        const struct of_device_id *match)
 {
-       struct device_node *np = ofdev->node, *child;
+       struct device_node *np = ofdev->dev.of_node, *child;
        struct gpio_led_of_platform_data *pdata;
        int count = 0, ret;
 
This page took 0.023746 seconds and 5 git commands to generate.