Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 452bc149 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Bryan Wu
Browse files

leds: leds-mc13783: Use of_get_child_by_name() instead of refcount hack



of_find_node_by_name() calls of_node_put() on its "from" parameter.
To counter this, mc13xxx_led_probe_dt() calls of_node_get() first.

Use of_get_child_by_name() instead to get rid of the refcount hack.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Cc: linux-leds@vger.kernel.org
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 137fe48d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment