Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c8365f6 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Walleij
Browse files

gpio: mvebu: remove unnecessary OOM messages



The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
Reviewed-by: default avatarJavier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 40b295fa
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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");