[alsa-devel] [PATCH] ASoC:isabelle:Fix warning message

MR.Swami.Reddy at ti.com MR.Swami.Reddy at ti.com
Tue Jun 5 16:41:21 CEST 2012


From: MR Swami Reddy <MR.Swami.Reddy at ti.com>

Patch to fix the below warning message:
sound/soc/codecs/isabelle.c:1126: warning: 'isabelle_regmap' is used uninitialized in this function

Signed-off-by: Vishwas A Deshpande <vishwas.a.deshpande at ti.com>
Signed-off-by: M R Swami Reddy <MR.Swami.Reddy at ti.com>
---
 sound/soc/codecs/isabelle.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c
index bcc77ef..a2efe1a 100644
--- a/sound/soc/codecs/isabelle.c
+++ b/sound/soc/codecs/isabelle.c
@@ -1126,8 +1126,6 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c,
 	struct regmap *isabelle_regmap;
 	int ret = 0;
 
-	i2c_set_clientdata(i2c, isabelle_regmap);
-
 	isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config);
 	if (IS_ERR(isabelle_regmap)) {
 		ret = PTR_ERR(isabelle_regmap);


More information about the Alsa-devel mailing list