summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rockchip-sfc.c
diff options
context:
space:
mode:
authorYihao Han <hanyihao@vivo.com>2022-03-10 10:48:06 +0100
committerMark Brown <broonie@kernel.org>2022-03-10 13:17:56 +0100
commit2cfdf0b4441aa918c3b18142740c92407b3c35a2 (patch)
tree0a7b6fb78650adebd2663b66d8d6d5d4ab5ffe3e /drivers/spi/spi-rockchip-sfc.c
parentspi: Tesla FSD support (diff)
downloadlinux-2cfdf0b4441aa918c3b18142740c92407b3c35a2.tar.xz
linux-2cfdf0b4441aa918c3b18142740c92407b3c35a2.zip
spi: rockchip-sfc: 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: Yihao Han <hanyihao@vivo.com> Link: https://lore.kernel.org/r/20220310094806.13734-1-hanyihao@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/spi/spi-rockchip-sfc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-rockchip-sfc.c b/drivers/spi/spi-rockchip-sfc.c
index a46b38544027..bd87d3c92dd3 100644
--- a/drivers/spi/spi-rockchip-sfc.c
+++ b/drivers/spi/spi-rockchip-sfc.c
@@ -624,10 +624,8 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
/* Find the irq */
ret = platform_get_irq(pdev, 0);
- if (ret < 0) {
- dev_err(dev, "Failed to get the irq\n");
+ if (ret < 0)
goto err_irq;
- }
ret = devm_request_irq(dev, ret, rockchip_sfc_irq_handler,
0, pdev->name, sfc);