[alsa-devel] [PATCH 23/38] sound: soc: add missing put_device call
This is required so that we give up the last reference to the device.
Signed-off-by: Levente Kurusa levex@linux.com --- sound/soc/soc-core.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4e53d87..21caa09 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -536,6 +536,7 @@ static int soc_ac97_dev_register(struct snd_soc_codec *codec) err = device_register(&codec->ac97->dev); if (err < 0) { dev_err(codec->dev, "ASoC: Can't register ac97 bus\n"); + put_device(&codec->ac97->dev); codec->ac97->dev.bus = NULL; return err; }
On Thu, Dec 19, 2013 at 04:03:34PM +0100, Levente Kurusa wrote:
This is required so that we give up the last reference to the device.
Applied, thanks. Please use subject lines matching the standard for the subsystem.
participants (2)
-
Levente Kurusa
-
Mark Brown