mtd: omap: fix mtd devices not showing up
authorFrans Klaver <frans.klaver@xsens.com>
Mon, 27 Oct 2014 14:34:05 +0000 (15:34 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 30 Oct 2014 01:41:54 +0000 (18:41 -0700)
commit0c53b4e7e25a2635aef3006b990b6802cefc873f
treec3e352b3c43717c71c48b107dfface8c2ba032f0
parenta5b7616c55e188fe3d6ef686bef402d4703ecb62
mtd: omap: fix mtd devices not showing up

Since commit 6d178ef2fd5e ("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>
drivers/mtd/nand/omap_elm.c