mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Jingoo Han <[email protected]> Acked-by: Jason Cooper <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
40b295fa7a
commit
6c8365f68a
1 changed files with 1 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue