diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-07 08:38:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-07 18:58:44 -0400 |
commit | 40820105d4caef1489edd56e9dc2b85871b65308 (patch) | |
tree | 911cbe35595195618dd9cf6857e0f292e3451b5b /sound/soc/codecs/isabelle.c | |
parent | a265367ccbe72010757a56e5776fcf9a49370181 (diff) |
ASoC: isabelle: using an uninitialized variable
We should set "isabelle_regmap" before using it. GCC complains.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/isabelle.c')
-rw-r--r-- | sound/soc/codecs/isabelle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c index bcc77ef0eda2..0d62f3b0f474 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, | |||
1126 | struct regmap *isabelle_regmap; | 1126 | struct regmap *isabelle_regmap; |
1127 | int ret = 0; | 1127 | int ret = 0; |
1128 | 1128 | ||
1129 | i2c_set_clientdata(i2c, isabelle_regmap); | ||
1130 | |||
1131 | isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config); | 1129 | isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config); |
1132 | if (IS_ERR(isabelle_regmap)) { | 1130 | if (IS_ERR(isabelle_regmap)) { |
1133 | ret = PTR_ERR(isabelle_regmap); | 1131 | ret = PTR_ERR(isabelle_regmap); |
@@ -1135,6 +1133,7 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c, | |||
1135 | ret); | 1133 | ret); |
1136 | return ret; | 1134 | return ret; |
1137 | } | 1135 | } |
1136 | i2c_set_clientdata(i2c, isabelle_regmap); | ||
1138 | 1137 | ||
1139 | ret = snd_soc_register_codec(&i2c->dev, | 1138 | ret = snd_soc_register_codec(&i2c->dev, |
1140 | &soc_codec_dev_isabelle, isabelle_dai, | 1139 | &soc_codec_dev_isabelle, isabelle_dai, |