Author: nwhitehorn
Date: Tue Oct 29 14:44:36 2013
New Revision: 257343
URL: http://svnweb.freebsd.org/changeset/base/257343

Log:
  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.

Modified:
  head/sys/arm/at91/at91.c

Modified: head/sys/arm/at91/at91.c
==============================================================================
--- head/sys/arm/at91/at91.c    Tue Oct 29 14:32:33 2013        (r257342)
+++ head/sys/arm/at91/at91.c    Tue Oct 29 14:44:36 2013        (r257343)
@@ -231,8 +231,7 @@ at91_probe(device_t dev)
 {
 
        device_set_desc(dev, "AT91 device bus");
-       arm_post_filter = at91_eoi;
-       return (0);
+       return (BUS_PROBE_NO_WILDCARD);
 }
 
 static void
@@ -261,6 +260,8 @@ at91_attach(device_t dev)
        const struct pmap_devmap *pdevmap;
        int i;
 
+       arm_post_filter = at91_eoi;
+
        at91_softc = sc;
        sc->sc_st = &at91_bs_tag;
        sc->sc_sh = AT91_BASE;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to