[PATCH] mtd: Add open firmware GPIO NAND driver

Wolfram Sang w.sang at pengutronix.de
Mon Jan 26 15:10:00 EST 2009


Hi Matthias,

On Mon, Jan 26, 2009 at 09:07:05AM +0100, Matthias Fuchs wrote:

> first I thought about adding the device tree code to the platform driver.
> But if you look at the code you will see that there are many places where
> the drivers differ. Merging my code with the platform driver will bring a lot of #ifdefs
> and I do not like that! The identical functions are only a very few lines.

Okay, that's why I asked :) When I did the of-version of mtd-ram, it was
luckily possible to make a generic init function and call them from
both, platform and of. I just wanted to know if such an approach was
considered.

Regards,

   Wolfram

-- 
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20090126/22f20e35/attachment.bin 


More information about the linux-mtd mailing list