diff options
Diffstat (limited to 'sys/arm/mv/ic.c')
-rw-r--r-- | sys/arm/mv/ic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arm/mv/ic.c b/sys/arm/mv/ic.c index 8861dc1..83d43a1 100644 --- a/sys/arm/mv/ic.c +++ b/sys/arm/mv/ic.c @@ -40,6 +40,9 @@ __FBSDID("$FreeBSD$"); #include <machine/bus.h> #include <machine/intr.h> +#include <dev/ofw/ofw_bus.h> +#include <dev/ofw/ofw_bus_subr.h> + #include <arm/mv/mvreg.h> #include <arm/mv/mvvar.h> @@ -76,6 +79,9 @@ static int mv_ic_probe(device_t dev) { + if (!ofw_bus_is_compatible(dev, "mrvl,pic")) + return (ENXIO); + device_set_desc(dev, "Marvell Integrated Interrupt Controller"); return (0); } @@ -134,7 +140,7 @@ static driver_t mv_ic_driver = { static devclass_t mv_ic_devclass; -DRIVER_MODULE(ic, mbus, mv_ic_driver, mv_ic_devclass, 0, 0); +DRIVER_MODULE(ic, simplebus, mv_ic_driver, mv_ic_devclass, 0, 0); int arm_get_next_irq(int last __unused) |