[spi-devel-general] [PATCH v2 3/6] mtd: m25p80: add support to parse the SPI flash's partitions

Grant Likely grant.likely at secretlab.ca
Tue Aug 10 17:16:10 EST 2010


On Tue, Aug 10, 2010 at 1:14 AM, David Brownell <david-b at pacbell.net> wrote:
>
>
> --- On Mon, 8/9/10, Grant Likely <grant.likely at secretlab.ca> wrote:
>
>
>> > +       nr_parts =
>> of_mtd_parse_partitions(&spi->dev, np, &parts);
>
> Let's keep OF-specific logic out of drivers like
> this one ...  intended to work without OF.
>
> NAK on adding dependencies like OF to drivers
> and other infrastructure that starts generic.

The OF hooks compile to no-ops when CONFIG_OF is disabled.  I've been
very careful about that.

g.


More information about the Linuxppc-dev mailing list