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: zhang songyi <zhang.songyi@zte.com.cn>
Reviewed-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/202212021042043546303@zte.com.cn
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
zhang songyi 2022-12-02 10:42:04 +08:00 committed by Arnd Bergmann
parent 69a485191b
commit 1d9ae5a135
No known key found for this signature in database
GPG Key ID: 9A6C79EFE60018D9
1 changed files with 1 additions and 3 deletions

View File

@ -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 =