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>
This commit is contained in:
Jingoo Han 2014-04-29 17:36:26 +09:00 committed by Linus Walleij
parent 4920c4aa2d
commit 1981d0844d
1 changed files with 1 additions and 3 deletions

View File

@ -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);