summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:46:22 +0900
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 10:55:35 +0200
commit50908d61ea483e0670768a712c166c3e4b2a30a3 (patch)
treeed437ba89546eb87525c005d0cd0bc981874b99c /drivers/gpio
parent0661175a2ae7f83a3d8963e36ca4cbffc6a686d0 (diff)
downloadlinux-50908d61ea483e0670768a712c166c3e4b2a30a3.tar.gz
linux-50908d61ea483e0670768a712c166c3e4b2a30a3.tar.bz2
linux-50908d61ea483e0670768a712c166c3e4b2a30a3.zip
gpio: zevio: 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-zevio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-zevio.c b/drivers/gpio/gpio-zevio.c
index 6270f755d0ed..4c173ad4c23c 100644
--- a/drivers/gpio/gpio-zevio.c
+++ b/drivers/gpio/gpio-zevio.c
@@ -178,10 +178,8 @@ static int zevio_gpio_probe(struct platform_device *pdev)
int status, i;
controller = devm_kzalloc(&pdev->dev, sizeof(*controller), GFP_KERNEL);
- if (!controller) {
- dev_err(&pdev->dev, "not enough free memory\n");
+ if (!controller)
return -ENOMEM;
- }
/* Copy our reference */
controller->chip.gc = zevio_gpio_chip;