summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-06-02 08:29:57 +0200
committerMark Brown <broonie@linaro.org>2014-06-02 16:12:16 +0200
commit6e27e99613b36e68bdbee2a8d21b39fc243fef93 (patch)
tree41aa2ef891f3475ee11e2a2dd3a465131ceadec8 /drivers
parentLinux 3.15-rc1 (diff)
downloadlinux-6e27e99613b36e68bdbee2a8d21b39fc243fef93.tar.xz
linux-6e27e99613b36e68bdbee2a8d21b39fc243fef93.zip
regulator: max8649: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/max8649.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c
index 3172da847d24..c8bddcc8f911 100644
--- a/drivers/regulator/max8649.c
+++ b/drivers/regulator/max8649.c
@@ -161,10 +161,8 @@ static int max8649_regulator_probe(struct i2c_client *client,
info = devm_kzalloc(&client->dev, sizeof(struct max8649_regulator_info),
GFP_KERNEL);
- if (!info) {
- dev_err(&client->dev, "No enough memory\n");
+ if (!info)
return -ENOMEM;
- }
info->regmap = devm_regmap_init_i2c(client, &max8649_regmap_config);
if (IS_ERR(info->regmap)) {