Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: rawnand: stm32_fmc2: manage the get_irq error case

During probe, check the "get_irq" error value.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Fabien Dessenne and committed by
Miquel Raynal
e4203945 2099920e

+6
+6
drivers/mtd/nand/raw/stm32_fmc2_nand.c
··· 1909 1909 } 1910 1910 1911 1911 irq = platform_get_irq(pdev, 0); 1912 + if (irq < 0) { 1913 + if (irq != -EPROBE_DEFER) 1914 + dev_err(dev, "IRQ error missing or invalid\n"); 1915 + return irq; 1916 + } 1917 + 1912 1918 ret = devm_request_irq(dev, irq, stm32_fmc2_irq, 0, 1913 1919 dev_name(dev), fmc2); 1914 1920 if (ret) {