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:
1712cde
)
mtd: onenand: return proper error if regulator_get fails
author
Axel Lin
<axel.lin@gmail.com>
Tue, 31 May 2011 13:20:53 +0000
(21:20 +0800)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Mon, 15 Aug 2011 10:26:38 +0000
(13:26 +0300)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/onenand/omap2.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/onenand/omap2.c
b/drivers/mtd/onenand/omap2.c
index a916dec292156a524438b117400837fd7d9f6145..0d9073d4e4170b302e84e00a7bb8cef09214b941 100644
(file)
--- a/
drivers/mtd/onenand/omap2.c
+++ b/
drivers/mtd/onenand/omap2.c
@@
-741,6
+741,7
@@
static int __devinit omap2_onenand_probe(struct platform_device *pdev)
c->regulator = regulator_get(&pdev->dev, "vonenand");
if (IS_ERR(c->regulator)) {
dev_err(&pdev->dev, "Failed to get regulator\n");
+ r = PTR_ERR(c->regulator);
goto err_release_dma;
}
c->onenand.enable = omap2_onenand_enable;