projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0e807
)
mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 28 May 2013 05:26:50 +0000
(13:26 +0800)
committer
Chris Ball
<cjb@laptop.org>
Thu, 27 Jun 2013 14:57:29 +0000
(10:57 -0400)
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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mobile_sdhi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sh_mobile_sdhi.c
b/drivers/mmc/host/sh_mobile_sdhi.c
index cc4c872cc924ac18817c76694ed04c2ac9f7961c..a4316b34df1f49c7e3bb503883af3b51319042d5 100644
(file)
--- 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",