From 055ddb030466439c362b0b070e3bf5583ecb7550 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Thu, 11 Feb 2016 06:15:43 +0000 Subject: [PATCH] Convert MIPS nexus and mips_pic to BUS_PASS Submitted by: Stanislav Galabov Reviewed by: kan Differential Revision: https://reviews.freebsd.org/D5196 --- sys/mips/mips/mips_pic.c | 6 ++++-- 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 c20bc8dabda1..250f8cf55cbc 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 fb52fa902376..6ab0da342572 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);