Skip to content

Commit

Permalink
ARM: OMAP2+: gpmc: fix: DT ONENAND child nodes not probed when MTD_ON…
Browse files Browse the repository at this point in the history
…ENAND is built as module

commit 980386d upstream.

Fixes: commit 75d3625
       ARM: OMAP2+: gpmc: add DT bindings for OneNAND

OMAP SoC(s) depend on GPMC controller driver to parse GPMC DT child nodes and
register them platform_device for ONENAND driver to probe later. However this does
not happen if generic MTD_ONENAND framework is built as module (CONFIG_MTD_ONENAND=m).

Therefore, when MTD/ONENAND and MTD/ONENAND/OMAP2 modules are loaded, they are unable
to find any matching platform_device and remain un-binded. This causes on board
ONENAND flash to remain un-detected.

This patch causes GPMC controller to parse DT nodes when
CONFIG_MTD_ONENAND=y || CONFIG_MTD_ONENAND=m

Signed-off-by: Pekon Gupta <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
  • Loading branch information
pekongupta authored and Jiri Slaby committed Mar 5, 2014
1 parent 3b336c5 commit 46f04ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ static int gpmc_probe_nand_child(struct platform_device *pdev,
}
#endif

#ifdef CONFIG_MTD_ONENAND
#if IS_ENABLED(CONFIG_MTD_ONENAND)
static int gpmc_probe_onenand_child(struct platform_device *pdev,
struct device_node *child)
{
Expand Down

0 comments on commit 46f04ab

Please sign in to comment.