[PATCH] mtd: rawnand: omap2: Fix check 0 for platform_get_irq()

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 11 09:00:29 PDT 2023


On Mon, 2023-08-21 at 08:46:22 UTC, Yi Yang wrote:
> Refer to commit a85a6c86c25b ("driver core: platform: Clarify that IRQ
> 0 is invalid"). Do not check 0 for platform_get_irq(), because
> platform_get_irq() never return zero, and use the return error code of
> platform_get_irq() instead of -ENODEV.
> 
> Signed-off-by: Yi Yang <yiyang13 at huawei.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list