Re: [PATCH 2/3] leds: leds-mc13783: Use of_get_child_by_name() instead of refcount hack

2015-01-14 Thread Bryan Wu
On Wed, Jan 14, 2015 at 5:51 AM, Geert Uytterhoeven wrote: > 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: Geert

[PATCH 2/3] leds: leds-mc13783: Use of_get_child_by_name() instead of refcount hack

2015-01-14 Thread Geert Uytterhoeven
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: Geert Uytterhoeven Cc: linux-l...@vger.kernel.org --- Compile-tested only ---

Re: [PATCH 2/3] leds: leds-mc13783: Use of_get_child_by_name() instead of refcount hack

2015-01-14 Thread Bryan Wu
On Wed, Jan 14, 2015 at 5:51 AM, Geert Uytterhoeven geert+rene...@glider.be wrote: 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.

[PATCH 2/3] leds: leds-mc13783: Use of_get_child_by_name() instead of refcount hack

2015-01-14 Thread Geert Uytterhoeven
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: Geert Uytterhoeven geert+rene...@glider.be Cc: linux-l...@vger.kernel.org ---