[PATCH] mtd: pxa2xx-flash.c: It used to fall back to provided table.

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Fri Nov 11 17:40:45 EST 2011


On Fri, Nov 11, 2011 at 9:06 PM, Jonathan Cameron <jic23 at kernel.org> wrote:
> From: Jonathan Cameron <jic23 at cam.ac.uk>
>
> Make this work again.

My fault.
Acked-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>

>
> Signed-off-by: Jonathan Cameron <jic23 at cam.ac.uk>
> ---
>  drivers/mtd/maps/pxa2xx-flash.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
> index 411a17d..2a25b67 100644
> --- a/drivers/mtd/maps/pxa2xx-flash.c
> +++ b/drivers/mtd/maps/pxa2xx-flash.c
> @@ -98,7 +98,7 @@ static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
>        }
>        info->mtd->owner = THIS_MODULE;
>
> -       mtd_device_parse_register(info->mtd, probes, 0, NULL, 0);
> +       mtd_device_parse_register(info->mtd, probes, 0, flash->parts, flash->nr_parts);
>
>        platform_set_drvdata(pdev, info);
>        return 0;
> --
> 1.7.7.2
>
>



-- 
With best wishes
Dmitry



More information about the linux-mtd mailing list