aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/leds/leds-pwm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index 3fbd28e99b2c..605047428b5a 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -87,11 +87,10 @@ static inline size_t sizeof_pwm_leds_priv(int num_leds)
87static int led_pwm_create_of(struct platform_device *pdev, 87static int led_pwm_create_of(struct platform_device *pdev,
88 struct led_pwm_priv *priv) 88 struct led_pwm_priv *priv)
89{ 89{
90 struct device_node *node = pdev->dev.of_node;
91 struct device_node *child; 90 struct device_node *child;
92 int ret; 91 int ret;
93 92
94 for_each_child_of_node(node, child) { 93 for_each_child_of_node(pdev->dev.of_node, child) {
95 struct led_pwm_data *led_dat = &priv->leds[priv->num_leds]; 94 struct led_pwm_data *led_dat = &priv->leds[priv->num_leds];
96 95
97 led_dat->cdev.name = of_get_property(child, "label", 96 led_dat->cdev.name = of_get_property(child, "label",