Skip to content

Commit

Permalink
mtd: omap: fix mtd devices not showing up
Browse files Browse the repository at this point in the history
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 <frans.klaver@xsens.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Frans Klaver authored and Brian Norris committed Oct 30, 2014
1 parent a5b7616 commit 0c53b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/omap_elm.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int elm_config(struct device *dev, enum bch_ecc bch_type,

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

0 comments on commit 0c53b4e

Please sign in to comment.