I have two different drivers for the same i2c device. Both drivers have the same string in their i2c module device table. One of the drivers is built into the kernel and the other was built as an out of tree module. If I load the module first, is there a way to force the device to be bound to the driver provided by the module rather than the driver built into the kernel?
Asked
Active
Viewed 1,250 times
2
-
Is there a reason why you don't want to blacklist the built-in one? – Ignacio Vazquez-Abrams Nov 08 '17 at 18:19
1 Answers
1
According to this answer:
How to block drivers built-into Kernel, i.e. drivers who are not a module
built-in kernel modules can be blacklisted using kernel boot parameters. To do this, you would need to either edit the 'linux' entry on the GRUB command line or modify the boot parameters in the /boot/grub.cfg file.
Other than that, I believe you would have to re-configure/compile the kernel.

Jeff Schaller
- 67,283
- 35
- 116
- 255

Time4Tea
- 2,366