summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-lynxpoint.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 12:36:26 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 12:54:52 +0400
commit1981d0844d62bef533deab531f3f7e176195c2bf (patch)
tree99e2eea45e31f8f1fcde83063ccdbc01a1b58d14 /drivers/gpio/gpio-lynxpoint.c
parent4920c4aa2d551c0e6b3a56280ba08dafef59d8b1 (diff)
downloadlinux-1981d0844d62bef533deab531f3f7e176195c2bf.tar.xz
gpio: lynxpoint: 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/gpio-lynxpoint.c')
-rw-r--r--drivers/gpio/gpio-lynxpoint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c
index 9a82a9074a2c..2bea89b72508 100644
--- a/drivers/gpio/gpio-lynxpoint.c
+++ b/drivers/gpio/gpio-lynxpoint.c
@@ -375,10 +375,8 @@ static int lp_gpio_probe(struct platform_device *pdev)
int ret = -ENODEV;
lg = devm_kzalloc(dev, sizeof(struct lp_gpio), GFP_KERNEL);
- if (!lg) {
- dev_err(dev, "can't allocate lp_gpio chip data\n");
+ if (!lg)
return -ENOMEM;
- }
lg->pdev = pdev;
platform_set_drvdata(pdev, lg);