Module Name: src
Committed By: msaitoh
Date: Thu Aug 9 07:48:39 UTC 2012
Modified Files:
src/sys/dev/pci: if_wm.c
Log Message:
Fix the check of the device type in last commit.
Reported by Thomas Klausner.
To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/sys/dev/pci/if_wm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_wm.c
diff -u src/sys/dev/pci/if_wm.c:1.230 src/sys/dev/pci/if_wm.c:1.231
--- src/sys/dev/pci/if_wm.c:1.230 Thu Aug 9 04:16:37 2012
+++ src/sys/dev/pci/if_wm.c Thu Aug 9 07:48:39 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.230 2012/08/09 04:16:37 msaitoh Exp $ */
+/* $NetBSD: if_wm.c,v 1.231 2012/08/09 07:48:39 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.230 2012/08/09 04:16:37 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.231 2012/08/09 07:48:39 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -4635,7 +4635,7 @@ wm_read_eeprom_uwire(struct wm_softc *sc
* We use this workaround only for 82540 because qemu's
* e1000 act as 82540.
*/
- if (sc->sc_type >= WM_T_82540) {
+ if (sc->sc_type == WM_T_82540) {
reg |= EECD_SK;
CSR_WRITE(sc, WMREG_EECD, reg);
reg &= ~EECD_SK;