Getting the IRQ number (Was: Basic driver devel questions ?)

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Dec 3 07:22:51 EST 2010


On Thu, 2010-12-02 at 18:47 +0100, Guillaume Dargaud wrote:
> 
> OK, learning by example then.
> 
> Another basic question: 
> what's the difference between of_register_platform_driver() and 
> platform_driver_register() ?
> I assume I must use the first one if I want to use
> irq_of_parse_and_map... 

No. of_platform_drivers are more/less obsolete. Normal platform drivers
can now be associated with a device-tree node just fine.

Cheers,
Ben.



More information about the Linuxppc-dev mailing list