From 7a3dad3b13fdbc1d51b1421ce541955e6a3aefa3 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Tue, 10 Jan 2006 17:47:16 +0000 Subject: fix reading of EEPROM content on big endian arches. --- sys/dev/ic/rt2560.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index dcd25bcae2e..d0f8e5a7c86 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2560.c,v 1.3 2006/01/10 17:45:06 damien Exp $ */ +/* $OpenBSD: rt2560.c,v 1.4 2006/01/10 17:47:15 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -1025,7 +1025,7 @@ rt2560_eeprom_read(struct rt2560_softc *sc, uint8_t addr) RT2560_EEPROM_CTL(sc, 0); RT2560_EEPROM_CTL(sc, RT2560_C); - return letoh16(val); + return val; } /* -- cgit v1.2.3