Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix bug in last commit: use &sc->sc_regs, regs is...



details:   https://anonhg.NetBSD.org/src/rev/d1c7695c39ce
branches:  trunk
changeset: 572114:d1c7695c39ce
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Dec 20 01:28:24 2004 +0000

description:
Fix bug in last commit: use &sc->sc_regs, regs is not defined.

diffstat:

 sys/dev/ic/rtw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 37f02636afc9 -r d1c7695c39ce sys/dev/ic/rtw.c
--- a/sys/dev/ic/rtw.c  Mon Dec 20 01:13:45 2004 +0000
+++ b/sys/dev/ic/rtw.c  Mon Dec 20 01:28:24 2004 +0000
@@ -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 <sys/cdefs.h>
-__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_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;



Home | Main Index | Thread Index | Old Index