Drivers' probe function calling order

Alessandro Rubini rubini at gnudd.com
Fri Jan 4 08:54:56 EST 2008


> how can I force the system to call
> probe function of the spi driver first?

You can declare their init functions at different initcall level.  For
example declaring the dataflash one as late_initcall(). Or declare
the spi one as subsys_initcall() -- whatever makes more sense.

There might be cleaner ways according to your setup, but this will
surely work.

/alessandro


More information about the Linuxppc-embedded mailing list