Skip to content

Commit c7f0f92

Browse files
Uwe Kleine-Königmiquelraynal
authored andcommitted
mtd: rawnand: fsl_elbc: Let .probe retry if local bus is missing
If during probe fsl_lbc_ctrl_dev is NULL that might just be because the fsl_lbc driver didn't bind yet. So return -EPROBE_DEFER in this case to make the driver core retry probing later. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent e0ccf86 commit c7f0f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/mtd/nand/raw/fsl_elbc_nand.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ static int fsl_elbc_nand_probe(struct platform_device *pdev)
869869
struct mtd_info *mtd;
870870

871871
if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs)
872-
return -ENODEV;
872+
return dev_err_probe(&pdev->dev, -EPROBE_DEFER, "lbc_ctrl_dev missing\n");
873+
873874
lbc = fsl_lbc_ctrl_dev->regs;
874875
dev = fsl_lbc_ctrl_dev->dev;
875876

0 commit comments

Comments
 (0)