[PATCH 9/13] powerpc: Add arch/powerpc mv64x60 I2C platform data setup

Arnd Bergmann arnd at arndb.de
Thu Apr 26 19:00:25 EST 2007

On Thursday 26 April 2007, Dale Farnsworth wrote:
> > Ok, I see your point there. But after looking at the i2c and net drivers,
> > I believe that they can easily be split into an architecture dependent
> > part that is either an of_platform_driver or a platform_driver, and
> > a common part that does not know about either of these.
> Oh, it's certainly possible, but it doesn't seem desirable to me. Why
> should the drivers carry the burden of supporting both platform_driver
> and of_platform_driver interfaces?

The reason is that platform_devices are for stuff that fundamentally cannot
be probed but has to be hardcoded in some place.

The point about the of device tree is that it allows you to probe this
kind of device. This means you get automatic module loading based on the
device tree, and that the devices show up in sane locations in /sys.

	Arnd <><

More information about the Linuxppc-dev mailing list