mmc: mxs-mmc: No need to do NULL check on 'iores'
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 19 Nov 2014 13:16:57 +0000 (11:16 -0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:31:03 +0000 (14:31 +0100)
commitc3cd5c076c3ab6a088d73e260b516bcda1dc9da4
treeb04999ad95324cd5c065d76cf1d3ac8bf410fb12
parent4d7c07cd6c0379228e65c52776f22250e8f4a962
mmc: mxs-mmc: No need to do NULL check on 'iores'

devm_ioremap_resource() already checks if 'iores' is NULL or not, so we can
skip this manual check.

While at it, move platform_get_resource() closer to devm_ioremap_resource() for
better readability.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mxs-mmc.c