mmc: sdhci-pltfm: move devm_ioremap_resource() up
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 20 Apr 2016 02:16:30 +0000 (11:16 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:34 +0000 (10:33 +0200)
commit378382b8d09d43371872103a58e4d4a7ff14b556
tree2486b67470267976fc894601fd6b5c0a13aeea2d
parente30568d43f5ea63e61906d2a90c9b981ef829ff7
mmc: sdhci-pltfm: move devm_ioremap_resource() up

Call devm_ioremap_resource() right after platform_get_resource().
This saves the error check of platform_get_resource() because
devm_ioremap_resource() checks if the given resource is NULL.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.c