mmc: sdhci-esdhc-imx: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 16 May 2017 22:08:31 +0000 (19:08 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:28 +0000 (10:30 +0200)
commit17b1eb7f0bf3dca2ee2baa283d04187207de5b83
treea6934e12c95597378fafa188fb2a311458641086
parent7322238f166c7af8245b5da76d70229d25465142
mmc: sdhci-esdhc-imx: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so we should better check its return value
and propagate it in the case of error.

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