aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-01-24 12:48:18 -0500
committerMark Brown <broonie@linaro.org>2014-02-03 07:30:21 -0500
commit9c25960cbba1fb452adf6a7b9d740fc4358f7d92 (patch)
treec0b6814210a8d66f228d93c2c67bbc898066d63d
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
regulator: gpio-regulator: Remove unneeded OOM error message
There is no need to print an OOM message after devm_kzalloc, since there is a generic OOM message in place. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/regulator/gpio-regulator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c
index c0a1d00b78c9..bad44f366b3f 100644
--- a/drivers/regulator/gpio-regulator.c
+++ b/drivers/regulator/gpio-regulator.c
@@ -239,10 +239,8 @@ static int gpio_regulator_probe(struct platform_device *pdev)
239 239
240 drvdata = devm_kzalloc(&pdev->dev, sizeof(struct gpio_regulator_data), 240 drvdata = devm_kzalloc(&pdev->dev, sizeof(struct gpio_regulator_data),
241 GFP_KERNEL); 241 GFP_KERNEL);
242 if (drvdata == NULL) { 242 if (drvdata == NULL)
243 dev_err(&pdev->dev, "Failed to allocate device data\n");
244 return -ENOMEM; 243 return -ENOMEM;
245 }
246 244
247 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); 245 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL);
248 if (drvdata->desc.name == NULL) { 246 if (drvdata->desc.name == NULL) {