pinctrl: mediatek: fix a memleak when do dt maps.
authorHongzhou Yang <hongzhou.yang@mediatek.com>
Tue, 17 Nov 2015 22:33:41 +0000 (14:33 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Nov 2015 21:34:39 +0000 (22:34 +0100)
commitb04a23b05609b35365127ad8906c55866eb47fe7
tree0a9dda4b32e8c08e3fb2fd2a657c4118010a0436
parentf10a2585811ebd503ddf8ebcc9a32166c7b4b05f
pinctrl: mediatek: fix a memleak when do dt maps.

configs will kmemdup to dup_configs in pictrl util function.
So configs need to be freed.

Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c