public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Return proper error for omap3pandora_soc_init
@ 2010-11-24  7:20 Axel Lin
  2010-11-24  7:23 ` [PATCH 2/2] ASoC: Fix resource reclaim for osk5912 Axel Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Axel Lin @ 2010-11-24  7:20 UTC (permalink / raw)
  To: linux-kernel
  Cc: Grazvydas Ignotas, Jarkko Nikula, Liam Girdwood, Mark Brown,
	linux-omap

Return PTR_ERR(omap3pandora_dac_reg) instead of 0 if regulator_get failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/omap/omap3pandora.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/omap/omap3pandora.c b/sound/soc/omap/omap3pandora.c
index bff9864..8047c52 100644
--- a/sound/soc/omap/omap3pandora.c
+++ b/sound/soc/omap/omap3pandora.c
@@ -307,6 +307,7 @@ static int __init omap3pandora_soc_init(void)
 		pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n",
 			dev_name(&omap3pandora_snd_device->dev),
 			PTR_ERR(omap3pandora_dac_reg));
+		ret = PTR_ERR(omap3pandora_dac_reg);
 		goto fail3;
 	}
 
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-24 11:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24  7:20 [PATCH 1/2] ASoC: Return proper error for omap3pandora_soc_init Axel Lin
2010-11-24  7:23 ` [PATCH 2/2] ASoC: Fix resource reclaim for osk5912 Axel Lin
2010-11-24  8:33   ` Jarkko Nikula
2010-11-24  8:37   ` Varadarajan, Charulatha
2010-11-24 10:50     ` Liam Girdwood
2010-11-24  8:33 ` [PATCH 1/2] ASoC: Return proper error for omap3pandora_soc_init Jarkko Nikula
2010-11-24 10:49 ` Liam Girdwood
2010-11-24 11:30 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox