diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-02-05 15:58:49 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-02-13 15:48:18 +0100 |
commit | baafacab092e282c69f57a90dc2c4ed25b083e22 (patch) | |
tree | e2eb04a047198a270fbb00f302ed615c2f4da8ea /drivers/macintosh/apm_emu.c | |
parent | aa1dd80f80ccf3a47227ab42625e7bbacd5ff272 (diff) | |
download | blackbird-obmc-linux-baafacab092e282c69f57a90dc2c4ed25b083e22.tar.gz blackbird-obmc-linux-baafacab092e282c69f57a90dc2c4ed25b083e22.zip |
pinctrl: samsung: Fix return value check in samsung_pinctrl_get_soc_data()
In case of error, the function devm_ioremap() returns NULL pointer not
ERR_PTR(). Fix by using devm_ioremap_resource instead of devm_ioremap.
Fixes: 8b1bd11c1f8f ("pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/macintosh/apm_emu.c')
0 files changed, 0 insertions, 0 deletions