On Wed, Dec 1, 2010 at 2:17 AM, Sebastian Andrzej Siewior
<[email protected]> 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 <[email protected]>
> CC: [email protected]
> Signed-off-by: Dirk Brandewie <[email protected]>
> ---
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.
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss