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

ASoC: STA529: fix an error message

GCC complains that "ret" is uninitialized here.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-By: default avatarRajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2b4d39fc
...@@ -397,8 +397,9 @@ static __devinit int sta529_i2c_probe(struct i2c_client *i2c, ...@@ -397,8 +397,9 @@ static __devinit int sta529_i2c_probe(struct i2c_client *i2c,
sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap); sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
if (IS_ERR(sta529->regmap)) { if (IS_ERR(sta529->regmap)) {
ret = PTR_ERR(sta529->regmap);
dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret); dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret);
return PTR_ERR(sta529->regmap); return ret;
} }
i2c_set_clientdata(i2c, sta529); i2c_set_clientdata(i2c, sta529);
......
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