How to modify the kernel source to adjust the initialization sequence of Linux kernel driver


The kernel source of Tx1 has many drive modules such as i2c and spi . The dc driver which will create dc.0 and dc.1 supports the display of monitor.

Dc driver start early than spi in Tx1.But I want to let spi driver start early than dc driver because of the needs of my project.

How to modify the kernel source to implement that function?
I will be very grateful for your any advice.

This might do nothing at all, but if it works would be simpler: Build your spi driver and any dependency of the driver as integrated into the kernel (avoid module format). But…for all I know spi is already integrated, it isn’t something I’ve dealt with…but it is easy to test.