linux_dsm_epyc7002/sound/soc
Jean Delvare d280289e79 sound: ASoC: Fix an error path in neo1973_wm8753
The error handling in neo1973_init is incorrect:

* If platform_device_add fails, we go on with the rest of the
  initialization instead of bailing out. Things will break when the
  module is removed (platform_device_unregister called on a device
  that wasn't registered.)

* If i2c_add_driver fails, we return an error so the module will not
  load, but we don't unregister neo1973_snd_device, so we are leaking
  resources.

Add the missing error handling.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Tim Niemeyer <reddog@mastersword.de>
Cc: Graeme Gregory <graeme@openmoko.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-09 09:11:07 +02:00
..
at32 ALSA: ASoC: Fix at32-pcm build breakage with PM enabled 2008-09-22 12:14:28 +02:00
at91 ALSA: ASoC: Convert wm8731 to a new-style i2c driver 2008-09-04 10:34:25 +02:00
au1x ALSA: Au1xpsc: psc not disabled when TX is idle 2008-07-15 15:08:28 +02:00
codecs ALSA: ASoC codec: fix compiling error in ad1980 driver after ASoC API changed 2008-09-09 09:10:54 +02:00
davinci ALSA: ASoC: Add missing new-line at end of strings 2008-08-29 10:06:07 +02:00
fsl ALSA: ASoC - fix DMA channel selection in Freescale MPC8610 sound drivers 2008-08-13 11:46:22 +02:00
omap ALSA: ASoC: Fix error paths in N810 machine driver init and release clocks at exit 2008-08-26 12:44:03 +02:00
pxa ALSA: ASoC: Convert wm8731 to a new-style i2c driver 2008-09-04 10:34:25 +02:00
s3c24xx sound: ASoC: Fix an error path in neo1973_wm8753 2008-09-09 09:11:07 +02:00
sh ALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:46 +02:00
Kconfig ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
Makefile ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
soc-core.c ALSA: ASoC: convert use of uint to unsigned int 2008-07-29 21:32:29 +02:00
soc-dapm.c ALSA: ASoC: Convert DAPM pop time configuration to debugfs 2008-08-29 10:06:14 +02:00