pinctrl: samsung: Fix memory mapping code
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 23 Feb 2017 10:12:40 +0000 (11:12 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Mar 2017 09:10:38 +0000 (10:10 +0100)
commit59f34e80c4910bc69ca643a2bb93fcce51366d83
tree51b0c454f0521994e393cae0d9f84c618ac7657e
parent08a7f260c88f8d52be52ff2113119b3464b69874
pinctrl: samsung: Fix memory mapping code

Some pinctrls share memory regions, and devm_ioremap_resource does not
allow to share resources, in opposition to devm_ioremap.
This patch restores back usage of devm_ioremap function, but with proper
error handling and logging.

Fixes: baafaca ("pinctrl: samsung: Fix return value check in samsung_pinctrl_get_soc_data()")
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c