gpio: mvebu: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:38:21 +0000 (17:38 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:55:00 +0000 (10:55 +0200)
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>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c

index d425094223947b96c3f35c40fc9997155bab0274..4d398ff83ad0da2cec464362d036d663314854ad 100644 (file)
@@ -574,10 +574,8 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
                soc_variant = MVEBU_GPIO_SOC_VARIANT_ORION;
 
        mvchip = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_gpio_chip), GFP_KERNEL);
-       if (!mvchip) {
-               dev_err(&pdev->dev, "Cannot allocate memory\n");
+       if (!mvchip)
                return -ENOMEM;
-       }
 
        if (of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios)) {
                dev_err(&pdev->dev, "Missing ngpios OF property\n");