linux-stable/drivers/mtd/nand/onenand
Jiasheng Jiang 3e68f331c8 mtd: onenand: Check for error irq
For the possible failure of the platform_get_irq(), the returned irq
could be error number and will finally cause the failure of the
request_irq().
Consider that platform_get_irq() can now in certain cases return
-EPROBE_DEFER, and the consequences of letting request_irq() effectively
convert that into -EINVAL, even at probe time rather than later on.
So it might be better to check just now.

Fixes: 2c22120fbd ("MTD: OneNAND: interrupt based wait support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220104162658.1988142-1-jiasheng@iscas.ac.cn
2022-01-23 16:37:17 +01:00
..
generic.c mtd: onenand: Check for error irq 2022-01-23 16:37:17 +01:00
Kconfig mtd: onenand: samsung: drop Exynos4 and describe driver in KConfig 2021-09-29 00:35:27 +02:00
Makefile mtd: onenand: Rename omap2 driver to avoid a build warning 2020-01-21 20:00:35 +01:00
onenand_base.c mtd: core: Constify buf in mtd_write_user_prot_reg() 2021-04-16 20:30:54 +02:00
onenand_bbt.c mtd: onenand: remove redundant variable ooblen 2021-12-09 17:29:51 +01:00
onenand_omap2.c mtd: onenand: Use mtd->oops_panic_write as condition 2020-12-10 22:37:32 +01:00
onenand_samsung.c mtd: onenand: Fix fall-through warnings for Clang 2021-03-11 12:17:44 +01:00
samsung.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00