Commit 144c4673 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Helge Deller
Browse files

fbdev: omap: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1957


Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 07c55c98
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1643,14 +1643,12 @@ static int omapfb_do_probe(struct platform_device *pdev,
	}
	fbdev->int_irq = platform_get_irq(pdev, 0);
	if (fbdev->int_irq < 0) {
		dev_err(&pdev->dev, "unable to get irq\n");
		r = ENXIO;
		goto cleanup;
	}

	fbdev->ext_irq = platform_get_irq(pdev, 1);
	if (fbdev->ext_irq < 0) {
		dev_err(&pdev->dev, "unable to get irq\n");
		r = ENXIO;
		goto cleanup;
	}