diff mbox

ASoC: rt5616: Return error if device ID mismatch

Message ID 1450750595.14401.1.camel@ingics.com (mailing list archive)
State Accepted
Commit 36ddd489b0669f8913c8eda192507f8267749917
Headers show

Commit Message

Axel Lin Dec. 22, 2015, 2:16 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/rt5616.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bard Liao Dec. 22, 2015, 3 a.m. UTC | #1
> -----Original Message-----
> From: Axel Lin [mailto:axel.lin@ingics.com]
> Sent: Tuesday, December 22, 2015 10:17 AM
> To: Mark Brown
> Cc: Bard Liao; Oder Chiou; Liam Girdwood; alsa-devel@alsa-project.org
> Subject: [PATCH] ASoC: rt5616: Return error if device ID mismatch
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Acked-by: Bard Liao <bardliao@realtek.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index f4005cb..0e9414a 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1314,7 +1314,7 @@  static int rt5616_i2c_probe(struct i2c_client *i2c,
 		dev_err(&i2c->dev,
 			"Device with ID register %#x is not rt5616\n",
 			val);
-		ret = -ENODEV;
+		return -ENODEV;
 	}
 	regmap_write(rt5616->regmap, RT5616_RESET, 0);
 	regmap_update_bits(rt5616->regmap, RT5616_PWR_ANLG1,