pxa: Remove dev_err() after platform_get_irq()
authorzhang songyi <zhang.songyi@zte.com.cn>
Fri, 2 Dec 2022 02:42:04 +0000 (10:42 +0800)
committerArnd Bergmann <arnd@arndb.de>
Sun, 4 Dec 2022 12:10:57 +0000 (13:10 +0100)
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>
drivers/soc/pxa/ssp.c

index 93449fb3519e87512fc2fb7d1e2b6d3583d373dd..bd029e83824139545de0d61c094e7a825d6bf7a9 100644 (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 =