diff options
author | marius <marius@FreeBSD.org> | 2012-05-11 02:40:40 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2012-05-11 02:40:40 +0000 |
commit | 8abe2314ae85e655915788fd072f42fbfa247733 (patch) | |
tree | b31b70f628f5070c2436173586ad3581fe39e033 /sys/dev/dc | |
parent | 56245e656edfc8f0ae3786833dd045adc3352069 (diff) | |
download | FreeBSD-src-8abe2314ae85e655915788fd072f42fbfa247733.zip FreeBSD-src-8abe2314ae85e655915788fd072f42fbfa247733.tar.gz |
- Change the module order of these MAC drivers to be last so they are
deterministically handled after the corresponding PHY drivers when
loaded as modules. Otherwise, when these MAC/PHY driver pairs are
compiled into a single module probing the PHY driver may fail. This
makes r151438 and r226154 actually work. [1]
Reported and tested by: yongari (fxp(4))
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
Submitted by: jhb [1]
MFC after: 3 days
Diffstat (limited to 'sys/dev/dc')
-rw-r--r-- | sys/dev/dc/if_dc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 0ace34e..f8f9af2 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -354,8 +354,9 @@ static driver_t dc_driver = { static devclass_t dc_devclass; -DRIVER_MODULE(dc, pci, dc_driver, dc_devclass, 0, 0); -DRIVER_MODULE(miibus, dc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE_ORDERED(dc, pci, dc_driver, dc_devclass, NULL, NULL, + SI_ORDER_ANY); +DRIVER_MODULE(miibus, dc, miibus_driver, miibus_devclass, NULL, NULL); #define DC_SETBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) |