* [PATCH] mtd: OneNAND: OMAP2: Return proper error if regulator_get fails
@ 2011-05-31 13:20 Axel Lin
2011-06-01 11:30 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-05-31 13:20 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-mtd, Kyungmin Park, David Woodhouse
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/mtd/onenand/omap2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index a916dec..0d9073d 100644
--- 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;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: OneNAND: OMAP2: Return proper error if regulator_get fails
2011-05-31 13:20 [PATCH] mtd: OneNAND: OMAP2: Return proper error if regulator_get fails Axel Lin
@ 2011-06-01 11:30 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-06-01 11:30 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-mtd, Kyungmin Park, David Woodhouse, linux-kernel
On Tue, 2011-05-31 at 21:20 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/mtd/onenand/omap2.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Pushed to l2-mtd-2.6.git, thank you.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 13:20 [PATCH] mtd: OneNAND: OMAP2: Return proper error if regulator_get fails Axel Lin
2011-06-01 11:30 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).