From: Wei Yongjun Date: Tue, 28 May 2013 05:26:50 +0000 (+0800) Subject: mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7913ae7d10d82bf9d9af6be6c20281fceb695ec0;p=deliverable%2Flinux.git mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe() Fix to return a negative error code instead of 0 when we cannot get IRQ source by platform_get_irq(), as done elsewhere in this function. Signed-off-by: Wei Yongjun Acked-by: Guennadi Liakhovetski Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index cc4c872cc924..a4316b34df1f 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -273,8 +273,10 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) } /* There must be at least one IRQ source */ - if (!i) + if (!i) { + ret = irq; goto eirq; + } } dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n",