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

Commit 5c336b0a authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds
Browse files

rtc: rtc-lpc32xx: 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>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 98e2d21f
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
	}
	}


	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
	if (unlikely(!rtc)) {
	if (unlikely(!rtc))
		dev_err(&pdev->dev, "Can't allocate memory\n");
		return -ENOMEM;
		return -ENOMEM;
	}

	rtc->irq = rtcirq;
	rtc->irq = rtcirq;


	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);