From b9ff79c84075b70abaf087696a5463d85d775080 Mon Sep 17 00:00:00 2001 From: dyoung Date: Mon, 20 Dec 2004 01:28:24 +0000 Subject: [PATCH] Fix bug in last commit: use &sc->sc_regs, regs is not defined. --- sys/dev/ic/rtw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index 701b85b76432..1eb4305913de 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtw.c,v 1.8 2004/12/20 01:13:45 dyoung Exp $ */ +/* $NetBSD: rtw.c,v 1.9 2004/12/20 01:28:24 dyoung Exp $ */ /*- * Copyright (c) 2004, 2005 David Young. All rights reserved. * @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.8 2004/12/20 01:13:45 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.9 2004/12/20 01:28:24 dyoung Exp $"); #include "bpfilter.h" @@ -2506,7 +2506,7 @@ rtw_start(struct ifnet *ifp) RTW_WRITE8(&sc->sc_regs, RTW_TPPOLL, RTW_TPPOLL_NPQ | RTW_TPPOLL_LPQ | RTW_TPPOLL_HPQ | RTW_TPPOLL_BQ); - RTW_SYNC(regs, RTW_TPPOLL, RTW_TPPOLL); + RTW_SYNC(&sc->sc_regs, RTW_TPPOLL, RTW_TPPOLL); } DPRINTF2(sc, ("%s: leave\n", __func__)); return;