Unverified Commit 1d9ae5a1 authored by zhang songyi's avatar zhang songyi Committed by Arnd Bergmann
Browse files

pxa: Remove dev_err() after platform_get_irq()



There is no need to call the dev_err() function directly to print a
custom message when handling an error from either the platform_get_irq()
or platform_get_irq_byname() functions as both are going to display an
appropriate error message in case of a failure.

Signed-off-by: default avatarzhang songyi <zhang.songyi@zte.com.cn>
Reviewed-by: default avatarLubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/202212021042043546303@zte.com.cn


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 69a48519
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -146,10 +146,8 @@ static int pxa_ssp_probe(struct platform_device *pdev)
	}

	ssp->irq = platform_get_irq(pdev, 0);
	if (ssp->irq < 0) {
		dev_err(dev, "no IRQ resource defined\n");
	if (ssp->irq < 0)
		return -ENODEV;
	}

	if (dev->of_node) {
		const struct of_device_id *id =