diff options
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 217538423225..a01006c8c606 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -272,6 +272,7 @@ static int ad1836_register(struct ad1836_priv *ad1836) | |||
272 | 272 | ||
273 | if (ad1836_codec) { | 273 | if (ad1836_codec) { |
274 | dev_err(codec->dev, "Another ad1836 is registered\n"); | 274 | dev_err(codec->dev, "Another ad1836 is registered\n"); |
275 | kfree(ad1836); | ||
275 | return -EINVAL; | 276 | return -EINVAL; |
276 | } | 277 | } |
277 | 278 | ||