Commit c59dbc64 authored by Yihao Han's avatar Yihao Han Committed by Mark Brown

spi: cadence: fix platform_get_irq.cocci warning

Remove dev_err() messages after platform_get_irq*() failures.
platform_get_irq() already prints an error.

Generated by: scripts/coccinelle/api/platform_get_irq.cocci
Signed-off-by: default avatarYihao Han <hanyihao@vivo.com>
Link: https://lore.kernel.org/r/20220303125054.3574-1-hanyihao@vivo.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent af524ae5
...@@ -578,10 +578,8 @@ static int cdns_xspi_probe(struct platform_device *pdev) ...@@ -578,10 +578,8 @@ static int cdns_xspi_probe(struct platform_device *pdev)
} }
cdns_xspi->irq = platform_get_irq(pdev, 0); cdns_xspi->irq = platform_get_irq(pdev, 0);
if (cdns_xspi->irq < 0) { if (cdns_xspi->irq < 0)
dev_err(dev, "Failed to get IRQ\n");
return -ENXIO; return -ENXIO;
}
ret = devm_request_irq(dev, cdns_xspi->irq, cdns_xspi_irq_handler, ret = devm_request_irq(dev, cdns_xspi->irq, cdns_xspi_irq_handler,
IRQF_SHARED, pdev->name, cdns_xspi); IRQF_SHARED, pdev->name, cdns_xspi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment