[PATCH v2 09/11] mtd: drop unnecessary partition parser data

Boris Brezillon boris.brezillon at free-electrons.com
Thu Nov 5 00:49:30 PST 2015


On Fri, 30 Oct 2015 20:33:28 -0700
Brian Norris <computersforpeace at gmail.com> wrote:

> --- a/drivers/mtd/maps/lantiq-flash.c
> +++ b/drivers/mtd/maps/lantiq-flash.c
> @@ -110,7 +110,6 @@ ltq_copy_to(struct map_info *map, unsigned long to,
>  static int
>  ltq_mtd_probe(struct platform_device *pdev)
>  {
> -	struct mtd_part_parser_data ppdata;
>  	struct ltq_mtd *ltq_mtd;
>  	struct cfi_private *cfi;
>  	int err;
> @@ -161,13 +160,13 @@ ltq_mtd_probe(struct platform_device *pdev)
>  	}
>  
>  	ltq_mtd->mtd->dev.parent = &pdev->dev;
> +	mtd_set_of_node(&ltq_mtd->mtd, pdev->dev.of_node);

Should be:

	mtd_set_of_node(ltq_mtd->mtd, pdev->dev.of_node);

(This error was reported by your aiaiai build test)

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the linux-mtd mailing list