summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:31:31 +0900
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 10:54:33 +0200
commite8a71aaa88c1c47c4fd91e75a329888e75dcc3c3 (patch)
tree2140824f4da129ef6dd8abaa8bed6d8b381b5538 /drivers/gpio
parent9d5d96ef2c3cb6da6eec7dd9d107ea63781368a0 (diff)
downloadblackbird-op-linux-e8a71aaa88c1c47c4fd91e75a329888e75dcc3c3.tar.gz
blackbird-op-linux-e8a71aaa88c1c47c4fd91e75a329888e75dcc3c3.zip
gpio: adp5520: 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-adp5520.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-adp5520.c b/drivers/gpio/gpio-adp5520.c
index 613265944e2e..f1ade8fa3218 100644
--- a/drivers/gpio/gpio-adp5520.c
+++ b/drivers/gpio/gpio-adp5520.c
@@ -106,10 +106,8 @@ static int adp5520_gpio_probe(struct platform_device *pdev)
}
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
- if (dev == NULL) {
- dev_err(&pdev->dev, "failed to alloc memory\n");
+ if (dev == NULL)
return -ENOMEM;
- }
dev->master = pdev->dev.parent;
OpenPOWER on IntegriCloud