Re: [PATCH] Use device_property_read instead of of_property_read in the dw_mmc driver

From: Andy Shevchenko
Date: Mon May 15 2017 - 09:30:14 EST


On Mon, May 15, 2017 at 12:36 PM, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
> On 25 April 2017 at 17:39, David Woods <dwoods@xxxxxxxxxxxx> wrote:
>> Using the device_property interfaces allows the dw_mmc driver to work
>> on platforms which run on either device tree or ACPI.

> Can you please split this to two separate changes. One for dw_mmc with
> a proper prefix (mmc: dw_mmc:) and one for the mmc core (prefix "mmc:
> core:").

Btw, for the core part of change I would recommend to check other API
functions which might go slightly different in case of ACPI vs DT vs
built-in device properties.

For example, if any code is using of_gpio header and of_ related stuff
it should be rethought as well (not sure if we would change there
anything, though worth to double check).

--
With Best Regards,
Andy Shevchenko