From 312832d4391c71ed40901a6505b1aa0f6524cdd8 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 9 Apr 2007 08:13:00 +0000 Subject: Add missing letoh16() for eeprom value. Pointed out by Hans Petter Selasky --- sys/dev/usb/if_axe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb') 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 */ -- cgit v1.2.3