Controlling Driver Load Order

Linus Walleij linus.ml.walleij at gmail.com
Wed May 26 17:04:01 EDT 2010


2010/5/26 Robert Emanuele <rob at emanuele.us>:

> On my at91sam9g45 platform I need my i2c drivers to load before the
> framebuffer driver.  The i2c drivers control a power management IC
> which is needed to enable the graphics controller.
>
> Is there a way to set up that order?

The usual trick (which you can find in a lot of other I2C busses) is to use
a core_initcall() instead of module_init().

You find the different init levels in include/linux/init.h

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list