Hi Greg, On Sat, Feb 14, 2009 at 8:42 AM, Greg KH <greg@xxxxxxxxx> wrote: > On Sat, Feb 14, 2009 at 08:37:06AM +0200, Ramagudi Naziir wrote: >> Hi Greg >> >> On Sat, Feb 14, 2009 at 4:08 AM, Greg KH <greg@xxxxxxxxx> wrote: >> >> anyone knows how to make that dependency in the device model ? >> > >> > Set the parent of B to be A. The device model supports this kind of >> > relationship for this very reason. >> >> What's the best way to do that ? Can I do that statically or during >> runtime ? If runtime, where's the recommended place to do that ? >> obviously it should be done before any .probe function get the chance >> to run... > > You need to set the platform device's dev.parent of B field to point to > A before you register B and after you register A. Thanks a lot ! You have been extremely helpful! > > If you point me at your code, I'll show you how to do it. Maybe I will post here the code for review :) Naziir. > > thanks, > > greg k-h > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ