[PATCH] mtd: delete partition erase size initialisation

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 3 00:00:31 PDT 2014


On Wed, Jul 02, 2014 at 04:55:14PM +0100, Renaud Barbier wrote:
> Delete the partition erase size initialisation to let the code
> that follows determine the biggest partition erase size.

Applied, thanks

Sascha

> ---
>  drivers/mtd/partition.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c
> index 5c0d46f..9b2b20e 100644
> --- a/drivers/mtd/partition.c
> +++ b/drivers/mtd/partition.c
> @@ -108,7 +108,6 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset,
>  	part->type = mtd->type;
>  	part->flags = mtd->flags;
>  	part->parent = &mtd->class_dev;
> -	part->erasesize = mtd->erasesize;
>  	part->writesize = mtd->writesize;
>  	part->writebufsize = mtd->writebufsize;
>  	part->oobsize = mtd->oobsize;
> -- 
> 1.8.3.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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