summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-04-09 08:13:00 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-04-09 08:13:00 +0000
commit312832d4391c71ed40901a6505b1aa0f6524cdd8 (patch)
tree208d38d45174beffdd8980126087a6848a249676 /sys/dev/usb
parenteaa89f31c3e009f841a2cf725ebd5d665f81a609 (diff)
Add missing letoh16() for eeprom value.
Pointed out by Hans Petter Selasky <hselasky@c2i.net>
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_axe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index dfaf526bc4e..1ac8da580df 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.60 2007/02/17 02:19:59 jsg Exp $ */
+/* $OpenBSD: if_axe.c,v 1.61 2007/04/09 08:12:59 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -443,6 +443,8 @@ axe_ax88178_init(struct axe_softc *sc)
axe_cmd(sc, AXE_CMD_SROM_READ, 0, 0x0017, &eeprom);
axe_cmd(sc, AXE_CMD_SROM_WR_DISABLE, 0, 0, NULL);
+ eeprom = letoh16(eeprom);
+
DPRINTF((" EEPROM is 0x%x\n", eeprom));
/* if EEPROM is invalid we have to use to GPIO0 */