summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorYihao Han <hanyihao@vivo.com>2022-03-03 13:34:27 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2022-03-14 16:58:38 +0100
commitfba6eb4fc4e6819d9684d378ace339c4212d5ce1 (patch)
treeaeaa2ccab03b6cf69fc49fef6842bbf792afcb51 /drivers/mtd
parentmtd: rawnand: stm32_fmc2: Add NAND Write Protect support (diff)
downloadlinux-fba6eb4fc4e6819d9684d378ace339c4212d5ce1.tar.xz
linux-fba6eb4fc4e6819d9684d378ace339c4212d5ce1.zip
mtd: rawnand: rockchip: 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> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220303123431.3170-1-hanyihao@vivo.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/rockchip-nand-controller.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/rockchip-nand-controller.c b/drivers/mtd/nand/raw/rockchip-nand-controller.c
index b5405bc7ca3a..cbaa4f1c83da 100644
--- a/drivers/mtd/nand/raw/rockchip-nand-controller.c
+++ b/drivers/mtd/nand/raw/rockchip-nand-controller.c
@@ -1403,7 +1403,6 @@ static int rk_nfc_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(dev, "no NFC irq resource\n");
ret = -EINVAL;
goto clk_disable;
}