]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: berlin: fix the dt_free_map function
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Wed, 10 Sep 2014 09:15:51 +0000 (11:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Sep 2014 15:01:47 +0000 (17:01 +0200)
commitb3e5c18b23a16a131935aa6df5e1f514567a9075
treeb8f2e5effb24e5c031c86584a3a4a70bae7693d8
parent1276bdda6f0a6cc74a6029ad124700997d5fc359
pinctrl: berlin: fix the dt_free_map function

The berlin_pinctrl_dt_free_map function tries to free memory
allocated and handled by the of subsystem. This is wrong and
already handled by pinctrl_dt_free_maps() which calls
of_node_put().

This patch fixes the Berlin pinctrl way of freeing its maps,
avoiding a kernel BUG(), by using the common
pinctrl_utils_dt_free_map function instead.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/berlin/berlin.c