[PATCH 4/7] gpiolib: implement dev_gpiochip_{add,remove} calls

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Oct 22 13:28:17 EST 2008


On Wed, 2008-10-22 at 05:42 +0400, Anton Vorontsov wrote:
> 
> Thinking about it more, I started recalling other issues. The bus
> notifier chain doesn't replay previous events, so we also have to
> register the notifier before the _devices_ are registered. And this
> ruins the whole approach. :-/ Yeah, that's why I abandoned the bus
> notifier idea.

The notifier can be registered before the devices, though it's a little
bit fishy and fragile.

Easier I suppose to just have OF specific hooks in the bus code.

Ben.





More information about the Linuxppc-dev mailing list