[PATCH 06/32] mtd: rbtx4939-flash don't specify default parsing options

Artem Bityutskiy dedekind1 at gmail.com
Mon Jun 6 07:42:39 EDT 2011


On Mon, 2011-06-06 at 13:15 +0400, Dmitry Eremin-Solenikov wrote:
>  static int rbtx4939_flash_probe(struct platform_device *dev)
>  {
> @@ -107,8 +106,7 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
>  	info->mtd->owner = THIS_MODULE;
>  	if (err)
>  		goto err_out;
> -
> -	err = parse_mtd_partitions(info->mtd, part_probe_types,
> +	err = parse_mtd_partitions(info->mtd, NULL,
>  				&info->parts, 0);

This can become one-line. I can do this.

>  	if (err > 0) {
>  		mtd_device_register(info->mtd, info->parts, err);


-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list