diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 17:37:09 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-09 10:54:56 +0200 |
commit | 40b295fa7a344d42d7ddaac6a3dbc035aa7f3c42 (patch) | |
tree | 473e431465419e01b9be02fa11d8a31fb93e7840 | |
parent | 1981d0844d62bef533deab531f3f7e176195c2bf (diff) |
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>
-rw-r--r-- | drivers/gpio/gpio-moxart.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c index ccd45704e5f..4661e181be0 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); |