Date: Wed, 3 Feb 2010 20:39:04 GMT From: Rafal Jaworowski <raj@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 174266 for review Message-ID: <201002032039.o13Kd4Kr007889@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174266 Change 174266 by raj@raj_fdt on 2010/02/03 20:39:00 Convert Marvell PIC to FDT/simplebus convention. Affected files ... .. //depot/projects/fdt/sys/arm/mv/ic.c#2 edit Differences ... ==== //depot/projects/fdt/sys/arm/mv/ic.c#2 (text+ko) ==== @@ -40,6 +40,9 @@ #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 @@ 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 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002032039.o13Kd4Kr007889>