From 43a095a5fdd263f081b953e34f8a7ca29496d9c9 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Fri, 23 Jul 1999 16:21:43 +0000 Subject: [PATCH] Grrr. Return the rman_get_bustag()/rman_get_bushandle() lines to their proper place in ti_attach(). I'm positive I typed them in there, but they must have fallen victim to a drive-by cut & pasting. --- sys/dev/ti/if_ti.c | 7 +++++-- sys/pci/if_ti.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index c1a37fce8c0..838e47a6a66 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $ + * $Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $ */ /* @@ -131,7 +131,7 @@ #if !defined(lint) static const char rcsid[] = - "$Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $"; + "$Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $"; #endif /* @@ -1575,6 +1575,9 @@ static int ti_attach(dev) goto fail; } + sc->ti_btag = rman_get_bustag(sc->ti_res); + sc->ti_bhandle = rman_get_bushandle(sc->ti_res); + /* Allocate interrupt */ rid = 0; sc->ti_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index c1a37fce8c0..838e47a6a66 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/if_ti.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $ + * $Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $ */ /* @@ -131,7 +131,7 @@ #if !defined(lint) static const char rcsid[] = - "$Id: if_ti.c,v 1.114 1999/07/05 19:20:31 wpaul Exp $"; + "$Id: if_ti.c,v 1.10 1999/07/23 02:10:11 wpaul Exp $"; #endif /* @@ -1575,6 +1575,9 @@ static int ti_attach(dev) goto fail; } + sc->ti_btag = rman_get_bustag(sc->ti_res); + sc->ti_bhandle = rman_get_bushandle(sc->ti_res); + /* Allocate interrupt */ rid = 0; sc->ti_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,