summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-moxart.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 10:37:09 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 10:54:56 +0200
commit40b295fa7a344d42d7ddaac6a3dbc035aa7f3c42 (patch)
tree473e431465419e01b9be02fa11d8a31fb93e7840 /drivers/gpio/gpio-moxart.c
parentgpio: lynxpoint: remove unnecessary OOM messages (diff)
downloadlinux-40b295fa7a344d42d7ddaac6a3dbc035aa7f3c42.tar.xz
linux-40b295fa7a344d42d7ddaac6a3dbc035aa7f3c42.zip
gpio: moxart: 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 '')
-rw-r--r--drivers/gpio/gpio-moxart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c
index ccd45704e5fd..4661e181be04 100644
--- a/drivers/gpio/gpio-moxart.c
+++ b/drivers/gpio/gpio-moxart.c
@@ -113,10 +113,8 @@ static int moxart_gpio_probe(struct platform_device *pdev)
int ret;
mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL);
- if (!mgc) {
- dev_err(dev, "can't allocate GPIO chip container\n");
+ if (!mgc)
return -ENOMEM;
- }
mgc->gpio = moxart_template_chip;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);