summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-omap2-mcspi.c
diff options
context:
space:
mode:
authorZhu Wang <wangzhu9@huawei.com>2023-08-01 21:54:42 +0800
committerMark Brown <broonie@kernel.org>2023-08-07 18:37:55 +0100
commit142c61a5fddeb755c420cb2e23b4bc0c0901308f (patch)
treecb9d677c5604b0a529cd1a07fd6d288c57488ee8 /drivers/spi/spi-omap2-mcspi.c
parent4f5177458ba97734149897c5d4d44f85b8fe0348 (diff)
downloadlwn-142c61a5fddeb755c420cb2e23b4bc0c0901308f.tar.gz
lwn-142c61a5fddeb755c420cb2e23b4bc0c0901308f.zip
spi: omap2-mcspi: remove redundant dev_err_probe()
When platform_get_irq() is called, the error message has been printed, so it need not to call dev_err_probe() to print error, we remove the redundant platform_get_irq(). Signed-off-by: Zhu Wang <wangzhu9@huawei.com> Link: https://lore.kernel.org/r/20230801135442.255604-1-wangzhu9@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
-rw-r--r--drivers/spi/spi-omap2-mcspi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 8331e247bf5c..e5cd82eb9e54 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1508,10 +1508,8 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
}
status = platform_get_irq(pdev, 0);
- if (status < 0) {
- dev_err_probe(&pdev->dev, status, "no irq resource found\n");
+ if (status < 0)
goto free_master;
- }
init_completion(&mcspi->txdone);
status = devm_request_irq(&pdev->dev, status,
omap2_mcspi_irq_handler, 0, pdev->name,