svn commit: r305606 - head/sys/dev/intpm
Andriy Gapon
avg at FreeBSD.org
Thu Sep 8 12:43:25 UTC 2016
Author: avg
Date: Thu Sep 8 12:43:24 2016
New Revision: 305606
URL: https://svnweb.freebsd.org/changeset/base/305606
Log:
intpm: make sure to register smbus driver before intpm driver
Otherwise we can fail to create an smbus child of intpm.
MFC after: 1 week
Modified:
head/sys/dev/intpm/intpm.c
Modified: head/sys/dev/intpm/intpm.c
==============================================================================
--- head/sys/dev/intpm/intpm.c Thu Sep 8 12:39:03 2016 (r305605)
+++ head/sys/dev/intpm/intpm.c Thu Sep 8 12:43:24 2016 (r305606)
@@ -924,7 +924,8 @@ static driver_t intsmb_driver = {
sizeof(struct intsmb_softc),
};
-DRIVER_MODULE(intsmb, pci, intsmb_driver, intsmb_devclass, 0, 0);
+DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, intsmb_devclass, 0, 0,
+ SI_ORDER_ANY);
DRIVER_MODULE(smbus, intsmb, smbus_driver, smbus_devclass, 0, 0);
MODULE_DEPEND(intsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
MODULE_VERSION(intsmb, 1);
More information about the svn-src-all
mailing list