Skip to content

Commit 0c53b4e

Browse files
fransklavercomputersforpeace
authored andcommitted
mtd: omap: fix mtd devices not showing up
Since commit 6d178ef ("mtd: nand: Move ELM driver and rename as omap_elm"), I don't have any mtd devices present on my am335x. This changes the link order of the omap_elm and omap2 objects, causing them to probe in the wrong order. To fix this, make elm_config defer probing until the omap_elm driver is actually loaded. Signed-off-by: Frans Klaver <[email protected]> Acked-by: Roger Quadros <[email protected]> Signed-off-by: Brian Norris <[email protected]>
1 parent a5b7616 commit 0c53b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/omap_elm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int elm_config(struct device *dev, enum bch_ecc bch_type,
115115

116116
if (!info) {
117117
dev_err(dev, "Unable to configure elm - device not probed?\n");
118-
return -ENODEV;
118+
return -EPROBE_DEFER;
119119
}
120120
/* ELM cannot detect ECC errors for chunks > 1KB */
121121
if (ecc_step_size > ((ELM_ECC_SIZE + 1) / 2)) {

0 commit comments

Comments
 (0)