[PATCH 09/10] mtd omap nand: fix driver without CONFIG_PARAMETER

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 16 05:34:01 EST 2012


On Mon, Jan 16, 2012 at 11:18:19AM +0100, Sascha Hauer wrote:
> With CONFIG_PARAMETER unset the driver never calls omap_gpmc_eccmode.
> Fix it.

Will drop this one and use the patch from Jan Weitzel instead.

Sascha

> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  drivers/mtd/nand/nand_omap_gpmc.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c
> index 3bb6d79..740751b 100644
> --- a/drivers/mtd/nand/nand_omap_gpmc.c
> +++ b/drivers/mtd/nand/nand_omap_gpmc.c
> @@ -958,6 +958,7 @@ 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]);
> +	omap_gpmc_eccmode(oinfo, pdata->ecc_mode);
>  
>  	/* We are all set to register with the system now! */
>  	err = add_mtd_device(minfo, "nand");
> -- 
> 1.7.8.3
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list