* [PATCH] ASoC: Fix hx4700 error handling to free gpios if snd_soc_register_card fails
@ 2011-12-12 3:26 Axel Lin
2011-12-12 4:58 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-12 3:26 UTC (permalink / raw)
To: alsa-devel; +Cc: Mark Brown, Liam Girdwood, Philipp Zabel, Dmitry Artamonow
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
sound/soc/pxa/hx4700.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/pxa/hx4700.c b/sound/soc/pxa/hx4700.c
index e32afaf..03ef9f3 100644
--- a/sound/soc/pxa/hx4700.c
+++ b/sound/soc/pxa/hx4700.c
@@ -209,9 +209,10 @@ static int __devinit hx4700_audio_probe(struct platform_device *pdev)
snd_soc_card_hx4700.dev = &pdev->dev;
ret = snd_soc_register_card(&snd_soc_card_hx4700);
if (ret)
- return ret;
+ gpio_free_array(hx4700_audio_gpios,
+ ARRAY_SIZE(hx4700_audio_gpios));
- return 0;
+ return ret;
}
static int __devexit hx4700_audio_remove(struct platform_device *pdev)
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: Fix hx4700 error handling to free gpios if snd_soc_register_card fails
2011-12-12 3:26 [PATCH] ASoC: Fix hx4700 error handling to free gpios if snd_soc_register_card fails Axel Lin
@ 2011-12-12 4:58 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-12-12 4:58 UTC (permalink / raw)
To: Axel Lin; +Cc: alsa-devel, Liam Girdwood, Philipp Zabel, Dmitry Artamonow
On Mon, Dec 12, 2011 at 11:26:00AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-12 4:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 3:26 [PATCH] ASoC: Fix hx4700 error handling to free gpios if snd_soc_register_card fails Axel Lin
2011-12-12 4:58 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.