OSDN Git Service

pinctrl: madera: Add missing call to pinctrl_unregister_mappings
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 28 Feb 2020 15:42:14 +0000 (15:42 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Feb 2020 23:34:23 +0000 (00:34 +0100)
commit3567ee83c413a939d45fea2e2f2c4968a9f81460
tree1bf6c2d2c190a10812b1bc78fce2cd5c6751d4f5
parentaafd56fc79041bf36f97712d4b35208cbe07db90
pinctrl: madera: Add missing call to pinctrl_unregister_mappings

pinctrl_register_mappings is called in the pdata case, however a call to
pinctrl_unregister_mappings is missing causing the mappings to be leaked
on driver unbind. Add the missing call to correct this issue.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200228154214.13916-1-ckeepax@opensource.cirrus.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/cirrus/pinctrl-madera-core.c