Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 14:44:37 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257343 - head/sys/arm/at91
Message-ID:  <201310291444.r9TEibs0003491@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310291444.r9TEibs0003491>