diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 04:37:09 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-09 04:54:56 -0400 |
commit | 40b295fa7a344d42d7ddaac6a3dbc035aa7f3c42 (patch) | |
tree | 473e431465419e01b9be02fa11d8a31fb93e7840 /drivers/gpio | |
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>
Diffstat (limited to 'drivers/gpio')
-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 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) | |||
113 | int ret; | 113 | int ret; |
114 | 114 | ||
115 | mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL); | 115 | mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL); |
116 | if (!mgc) { | 116 | if (!mgc) |
117 | dev_err(dev, "can't allocate GPIO chip container\n"); | ||
118 | return -ENOMEM; | 117 | return -ENOMEM; |
119 | } | ||
120 | mgc->gpio = moxart_template_chip; | 118 | mgc->gpio = moxart_template_chip; |
121 | 119 | ||
122 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 120 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |