Date: Thu, 8 Sep 2016 12:43:24 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r305606 - head/sys/dev/intpm Message-ID: <201609081243.u88ChOl1033220@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609081243.u88ChOl1033220>