summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJingoo Han2014-04-29 10:33:26 +0200
committerLinus Walleij2014-05-09 10:54:39 +0200
commit9ea9363c1b012cba2c4a123b34eec8a3007c6140 (patch)
tree570c58174ae1934ae391be3c6d814730b1d6d7ca /drivers/gpio
parentgpio: adp5588: remove unnecessary OOM messages (diff)
downloadkernel-qcow2-linux-9ea9363c1b012cba2c4a123b34eec8a3007c6140.tar.gz
kernel-qcow2-linux-9ea9363c1b012cba2c4a123b34eec8a3007c6140.tar.xz
kernel-qcow2-linux-9ea9363c1b012cba2c4a123b34eec8a3007c6140.zip
gpio: davinci: 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> Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-davinci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 339f9dac591b..9f0682534e2f 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -230,10 +230,8 @@ static int davinci_gpio_probe(struct platform_device *pdev)
chips = devm_kzalloc(dev,
ngpio * sizeof(struct davinci_gpio_controller),
GFP_KERNEL);
- if (!chips) {
- dev_err(dev, "Memory allocation failed\n");
+ if (!chips)
return -ENOMEM;
- }
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {