svn commit: r322373 - head/sys/arm/ti/am335x
Ian Lepore
ian at FreeBSD.org
Thu Aug 10 19:42:31 UTC 2017
Author: ian
Date: Thu Aug 10 19:42:30 2017
New Revision: 322373
URL: https://svnweb.freebsd.org/changeset/base/322373
Log:
Ensure the clocks driver is attached before any drivers that need to enable
clocks in their attach().
Modified:
head/sys/arm/ti/am335x/am335x_prcm.c
Modified: head/sys/arm/ti/am335x/am335x_prcm.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_prcm.c Thu Aug 10 17:46:57 2017 (r322372)
+++ head/sys/arm/ti/am335x/am335x_prcm.c Thu Aug 10 19:42:30 2017 (r322373)
@@ -465,8 +465,8 @@ static driver_t am335x_prcm_driver = {
static devclass_t am335x_prcm_devclass;
-DRIVER_MODULE(am335x_prcm, simplebus, am335x_prcm_driver,
- am335x_prcm_devclass, 0, 0);
+EARLY_DRIVER_MODULE(am335x_prcm, simplebus, am335x_prcm_driver,
+ am335x_prcm_devclass, 0, 0, BUS_PASS_TIMER + BUS_PASS_ORDER_EARLY);
MODULE_VERSION(am335x_prcm, 1);
MODULE_DEPEND(am335x_prcm, ti_scm, 1, 1, 1);
More information about the svn-src-all
mailing list