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
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
---
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.
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
---
4 matches
Mail list logo