i2c: mxs: Use devm_ioremap_resource()
authorJingoo Han <jg1.han@samsung.com>
Sun, 9 Mar 2014 23:34:10 +0000 (08:34 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Mar 2014 07:29:37 +0000 (08:29 +0100)
commit0977f27338777fab04e20f769b869bc7726ab0ac
tree003b073cc51d864eb5630c1d18d9b8a9197966a8
parentae50b1df50ee3a4ed9a553eae906485918afd4c8
i2c: mxs: Use devm_ioremap_resource()

Use devm_ioremap_resource() in order to make the code simpler,
and remove redundant return value check of platform_get_resource()
because the value is checked by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mxs.c