summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-11-19 13:16:58 (GMT)
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-26 13:31:04 (GMT)
commit5654d90064bda87a9738fd6fcfcfca5537754259 (patch)
tree815e47da96826659c85711f9d97966b5c5eb141e /drivers/mmc
parentc3cd5c076c3ab6a088d73e260b516bcda1dc9da4 (diff)
downloadlinux-5654d90064bda87a9738fd6fcfcfca5537754259.tar.xz
mmc: mxs-mmc: Propagate the real error
If platform_get_irq() fails, it is better to propagate the real error value instead of a 'fake' one. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mxs-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index 0d30730..f2c49e0 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -583,7 +583,7 @@ static int mxs_mmc_probe(struct platform_device *pdev)
irq_err = platform_get_irq(pdev, 0);
if (irq_err < 0)
- return -EINVAL;
+ return irq_err;
mmc = mmc_alloc_host(sizeof(struct mxs_mmc_host), &pdev->dev);
if (!mmc)