fix gpmc_nand_probe without param support
Subsystems (2)
RFC 1/1 fix gpmc_nand_probe without param support
commit 30de24d79fc6e659d0070f6e863ae0e53567ba0e param: add config to disable it removes param support for xloader configurations. Set param eccmode calls omap_gpmc_eccmode and so nand_scan_tail. So nand fails without param support
Call omap_gpmc_eccmode directly if CONFIG_PARAMETER is not enabled to fix that.
Signed-off-by Jan Weitzel <[email protected]>
---
Because my xloader is still to big (50480 due to nand support), only rarely tested.
drivers/mtd/nand/nand_omap_gpmc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mtd/nand/nand_omap_gpmc.c +3 -0
@@ -959,6 +959,9 @@ static int gpmc_nand_probe(struct device_d *pdev)dev_add_param (pdev,"eccmode" , omap_gpmc_eccmode_set,NULL ,0 );dev_set_param (pdev,"eccmode" , ecc_mode_strings[pdata->ecc_mode]); +if (!IS_ENABLED (CONFIG_PARAMETER )) +omap_gpmc_eccmode (oinfo, pdata->ecc_mode); +/* We are all set to register with the system now! */ err =add_mtd_device (minfo,"nand" );if (err) {
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox