[PATCH v2] rtc/cmos: add OF bindings

Grant Likely grant.likely at secretlab.ca
Thu Dec 2 17:46:23 EST 2010


On Wed, Dec 1, 2010 at 2:17 AM, Sebastian Andrzej Siewior
<bigeasy at linutronix.de> wrote:
> This allows to load the OF driver based informations from the device
> tree. Systems without BIOS may need to perform some initialization.
> PowerPC creates a PNP device from the OF information and performs this
> kind of initialization in their private PCI quirk. This looks more
> generic.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
> CC: rtc-linux at googlegroups.com
> Signed-off-by: Dirk Brandewie <dirk.brandewie at gmail.com>
> ---

Hi Sebastian.

> +static struct of_platform_driver cmos_of_driver_probe = {

of_platform_drivers are deprecated and being removed.  Regular
platform_drivers can be assigned an of_match_table and the
platform_bus_type will use it to match drivers to devices.  Instead of
doing it this way, you can look for a device tree node in the existing
platform_drivers probe hook and if it exists then fetch the additional
data there.

g.


More information about the devicetree-discuss mailing list