summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-24 14:32:41 -0700
committerSimon Glass <sjg@chromium.org>2021-02-03 03:38:41 -0700
commitf724f0af2b5f9d2d17caa3b76cf58574788d8515 (patch)
tree8f3af2593f074a6d98b4f672d320a119b2bf6dff /drivers/mtd/nand
parente96777b71e1e810e51f383da84f22c72096344ea (diff)
downloadu-boot-f724f0af2b5f9d2d17caa3b76cf58574788d8515.tar.gz
nand: brcmnand: Don't use -EPROBE_DEFER
This has no useful meaning in U-Boot and will never be returned. We want to reserve this flag for internal driver model use. Drop the code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/raw/brcmnand/brcmnand.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
index 7349a9bc99..99a1c2e6e2 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
@@ -2526,10 +2526,7 @@ int brcmnand_probe(struct udevice *dev, struct brcmnand_soc *soc)
if (ret)
return ret;
} else {
- ret = PTR_ERR(ctrl->clk);
- if (ret == -EPROBE_DEFER)
- return ret;
-
+ /* Ignore PTR_ERR(ctrl->clk) */
ctrl->clk = NULL;
}