diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-20 03:53:04 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-20 06:20:39 -0500 |
commit | df948bbf486817565f0e3c8b65e6cc0bbc13f0eb (patch) | |
tree | 8a592372c4318e4c42b607c13a6959029d44a6b7 /drivers/regulator/fan53555.c | |
parent | 145fe1e1d533943fc93da42d6f2e13aba919776e (diff) |
regulator: fan53555: Remove redundant error message
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Yunfan Zhang <yfzhang@marvell.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/fan53555.c')
-rw-r--r-- | drivers/regulator/fan53555.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index a10df7d150cc..714fd9a89aa1 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c | |||
@@ -244,10 +244,9 @@ static int fan53555_regulator_probe(struct i2c_client *client, | |||
244 | 244 | ||
245 | di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info), | 245 | di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info), |
246 | GFP_KERNEL); | 246 | GFP_KERNEL); |
247 | if (!di) { | 247 | if (!di) |
248 | dev_err(&client->dev, "Failed to allocate device info data!\n"); | ||
249 | return -ENOMEM; | 248 | return -ENOMEM; |
250 | } | 249 | |
251 | di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config); | 250 | di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config); |
252 | if (IS_ERR(di->regmap)) { | 251 | if (IS_ERR(di->regmap)) { |
253 | dev_err(&client->dev, "Failed to allocate regmap!\n"); | 252 | dev_err(&client->dev, "Failed to allocate regmap!\n"); |