owc_gpiobus: clean / fix up the driver module things
"fdt" is removed from the driver module name as the driver does not require FDT and can work very well on hints based systems. A module dependency is added for gpiobus. Without that owc cannot resolve symbols in gpiobus if both are loaded as kernel modules. Finally, a driver module module version is added. Reviewed by: imp MFC after: 11 days
This commit is contained in:
parent
7256d0fcfd
commit
926c3367c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349428
@ -416,5 +416,7 @@ static driver_t owc_gpiobus_driver = {
|
|||||||
sizeof(struct owc_gpiobus_softc),
|
sizeof(struct owc_gpiobus_softc),
|
||||||
};
|
};
|
||||||
|
|
||||||
DRIVER_MODULE(owc_gpiobus_fdt, gpiobus, owc_gpiobus_driver, owc_gpiobus_devclass, 0, 0);
|
DRIVER_MODULE(owc_gpiobus, gpiobus, owc_gpiobus_driver, owc_gpiobus_devclass, 0, 0);
|
||||||
MODULE_DEPEND(owc_gpiobus_fdt, ow, 1, 1, 1);
|
MODULE_DEPEND(owc_gpiobust, ow, 1, 1, 1);
|
||||||
|
MODULE_DEPEND(owc_gpiobus, gpiobus, 1, 1, 1);
|
||||||
|
MODULE_VERSION(owc_gpiobus, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user