Skip to content

Commit 142c61a

Browse files
PeterZhu789broonie
authored andcommitted
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>
1 parent 4f51774 commit 142c61a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/spi/spi-omap2-mcspi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,10 +1508,8 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
15081508
}
15091509

15101510
status = platform_get_irq(pdev, 0);
1511-
if (status < 0) {
1512-
dev_err_probe(&pdev->dev, status, "no irq resource found\n");
1511+
if (status < 0)
15131512
goto free_master;
1514-
}
15151513
init_completion(&mcspi->txdone);
15161514
status = devm_request_irq(&pdev->dev, status,
15171515
omap2_mcspi_irq_handler, 0, pdev->name,

0 commit comments

Comments
 (0)