diff options
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-mc13783.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c index 85c3714e1b5a..e2b847fe22a1 100644 --- a/drivers/leds/leds-mc13783.c +++ b/drivers/leds/leds-mc13783.c | |||
@@ -134,9 +134,7 @@ static struct mc13xxx_leds_platform_data __init *mc13xxx_led_probe_dt( | |||
134 | if (!pdata) | 134 | if (!pdata) |
135 | return ERR_PTR(-ENOMEM); | 135 | return ERR_PTR(-ENOMEM); |
136 | 136 | ||
137 | of_node_get(dev->parent->of_node); | 137 | parent = of_get_child_by_name(dev->parent->of_node, "leds"); |
138 | |||
139 | parent = of_find_node_by_name(dev->parent->of_node, "leds"); | ||
140 | if (!parent) | 138 | if (!parent) |
141 | goto out_node_put; | 139 | goto out_node_put; |
142 | 140 | ||