[PATCH 6.2/7] MMC: mmci: Enable Device Tree support for ux500

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Apr 25 14:57:47 EDT 2012


On Mon, Apr 16, 2012 at 10:26:08AM +0100, Lee Jones wrote:
> +	/* Must have platform data or Device Tree. */
> +	if (!plat && !np) {
> +		dev_err(&dev->dev, "No plat data or DT found\n");
> +		return -EINVAL;
>  	}
>  
> +	if (np)
> +		mmci_dt_populate_generic_pdata(np, plat);

Please tell me what happens if plat is NULL, but we're running on a DT
enabled platform.  Something tells me that you might just want to fix
that case _before_ I apply your patch.



More information about the linux-arm-kernel mailing list