A last BUS_PROBE_NOWILDCARD. Move setting the postfilter function into the

attach function probe shouldn't actually set anything up but just bid
on the device.
This commit is contained in:
Nathan Whitehorn 2013-10-29 14:44:36 +00:00
parent e5bcdd7960
commit cd43f427f6

View File

@ -231,8 +231,7 @@ at91_probe(device_t dev)
{ {
device_set_desc(dev, "AT91 device bus"); device_set_desc(dev, "AT91 device bus");
arm_post_filter = at91_eoi; return (BUS_PROBE_NO_WILDCARD);
return (0);
} }
static void static void
@ -261,6 +260,8 @@ at91_attach(device_t dev)
const struct pmap_devmap *pdevmap; const struct pmap_devmap *pdevmap;
int i; int i;
arm_post_filter = at91_eoi;
at91_softc = sc; at91_softc = sc;
sc->sc_st = &at91_bs_tag; sc->sc_st = &at91_bs_tag;
sc->sc_sh = AT91_BASE; sc->sc_sh = AT91_BASE;