Commit 40820105 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: isabelle: using an uninitialized variable

We should set "isabelle_regmap" before using it.  GCC complains.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a265367c
...@@ -1126,8 +1126,6 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c, ...@@ -1126,8 +1126,6 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c,
struct regmap *isabelle_regmap; struct regmap *isabelle_regmap;
int ret = 0; int ret = 0;
i2c_set_clientdata(i2c, isabelle_regmap);
isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config); isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config);
if (IS_ERR(isabelle_regmap)) { if (IS_ERR(isabelle_regmap)) {
ret = PTR_ERR(isabelle_regmap); ret = PTR_ERR(isabelle_regmap);
...@@ -1135,6 +1133,7 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c, ...@@ -1135,6 +1133,7 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c,
ret); ret);
return ret; return ret;
} }
i2c_set_clientdata(i2c, isabelle_regmap);
ret = snd_soc_register_codec(&i2c->dev, ret = snd_soc_register_codec(&i2c->dev,
&soc_codec_dev_isabelle, isabelle_dai, &soc_codec_dev_isabelle, isabelle_dai,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment