diff options
author | adrian <adrian@FreeBSD.org> | 2016-02-11 06:15:43 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2016-02-11 06:15:43 +0000 |
commit | 93a38902f43339078c110f1a37a0e1d028c0e9b7 (patch) | |
tree | 3da71741739734b24fb98bf200c04a4104f9443c | |
parent | 570389571c5f6857c10342bb7f19c3c5335c5fab (diff) | |
download | FreeBSD-src-93a38902f43339078c110f1a37a0e1d028c0e9b7.zip FreeBSD-src-93a38902f43339078c110f1a37a0e1d028c0e9b7.tar.gz |
Convert MIPS nexus and mips_pic to BUS_PASS
Submitted by: Stanislav Galabov <sgalabov@gmail.com>
Reviewed by: kan
Differential Revision: https://reviews.freebsd.org/D5196
-rw-r--r-- | sys/mips/mips/mips_pic.c | 6 | ||||
-rw-r--r-- | sys/mips/mips/nexus.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/mips/mips/mips_pic.c b/sys/mips/mips/mips_pic.c index c20bc8d..250f8cf 100644 --- a/sys/mips/mips/mips_pic.c +++ b/sys/mips/mips/mips_pic.c @@ -448,9 +448,11 @@ static driver_t mips_pic_driver = { static devclass_t mips_pic_devclass; #ifdef FDT -DRIVER_MODULE(cpupic, ofwbus, mips_pic_driver, mips_pic_devclass, 0, 0); +EARLY_DRIVER_MODULE(cpupic, ofwbus, mips_pic_driver, mips_pic_devclass, 0, 0, + BUS_PASS_INTERRUPT); #else -DRIVER_MODULE(cpupic, nexus, mips_pic_driver, mips_pic_devclass, 0, 0); +EARLY_DRIVER_MODULE(cpupic, nexus, mips_pic_driver, mips_pic_devclass, 0, 0, + BUS_PASS_INTERRUPT); #endif void diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c index fb52fa9..6ab0da3 100644 --- a/sys/mips/mips/nexus.c +++ b/sys/mips/mips/nexus.c @@ -576,4 +576,5 @@ nexus_hinted_child(device_t bus, const char *dname, int dunit) } } -DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0); +EARLY_DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_EARLY); |