[PATCH] mtd: nand: pxa3xx_nand: kill unused field 'drcmr_cmd'

Robert Jarzmik robert.jarzmik at free.fr
Sat Mar 5 00:34:14 PST 2016


Brian Norris <computersforpeace at gmail.com> writes:

> Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Hi Brian,

> @@ -1812,7 +1811,6 @@ static int alloc_nand_resource(struct platform_device *pdev)
>  			ret = -ENXIO;
>  			goto fail_disable_clk;
>  		}
> -		info->drcmr_cmd = r->start;
>  	}
If you kill this field, why not kill also this block just above ?
		r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
		if (r == NULL) {
			dev_err(&pdev->dev,
				"no resource defined for cmd DMA\n");
			ret = -ENXIO;
			goto fail_disable_clk;
		}

Cheers.

-- 
Robert



More information about the linux-mtd mailing list