Commit 0463585c authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

ASoC: wm9090: Remove redundant OOM message

Let memory subsystem handle the error logging.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 549f66e0
...@@ -613,10 +613,8 @@ static int wm9090_i2c_probe(struct i2c_client *i2c, ...@@ -613,10 +613,8 @@ static int wm9090_i2c_probe(struct i2c_client *i2c,
int ret; int ret;
wm9090 = devm_kzalloc(&i2c->dev, sizeof(*wm9090), GFP_KERNEL); wm9090 = devm_kzalloc(&i2c->dev, sizeof(*wm9090), GFP_KERNEL);
if (wm9090 == NULL) { if (!wm9090)
dev_err(&i2c->dev, "Can not allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
wm9090->regmap = devm_regmap_init_i2c(i2c, &wm9090_regmap); wm9090->regmap = devm_regmap_init_i2c(i2c, &wm9090_regmap);
if (IS_ERR(wm9090->regmap)) { if (IS_ERR(wm9090->regmap)) {
......
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