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

Russell King - ARM Linux
2012-04-25T18:57:47Z

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.