mmc: mxcmmc: fix error return code in mxcmci_probe()
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 7 Jul 2017 05:59:28 +0000 (00:59 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:24 +0000 (14:01 +0200)
commitf216c124dc769dfee14b445aec9e1c0b8852d7a2
treed47b86fcb82aac4b97f81f2c007b774015734647
parent0f77934ab8db9368e29f1cb050af25c244710471
mmc: mxcmmc: fix error return code in mxcmci_probe()

platform_get_irq() returns an error code, but the mxcmmc driver
ignores it and always returns -EINVAL. This is not correct,
and prevents -EPROBE_DEFER from being propagated properly.

Print error message and propagate the return value of
platform_get_irq on failure.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mxcmmc.c