diff options
-rw-r--r-- | sound/soc/codecs/wm8974.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index a2c4b2f37cc..1468fe10cbb 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c | |||
@@ -670,7 +670,8 @@ static __devinit int wm8974_register(struct wm8974_priv *wm8974) | |||
670 | 670 | ||
671 | if (wm8974_codec) { | 671 | if (wm8974_codec) { |
672 | dev_err(codec->dev, "Another WM8974 is registered\n"); | 672 | dev_err(codec->dev, "Another WM8974 is registered\n"); |
673 | return -EINVAL; | 673 | ret = -EINVAL; |
674 | goto err; | ||
674 | } | 675 | } |
675 | 676 | ||
676 | mutex_init(&codec->mutex); | 677 | mutex_init(&codec->mutex); |