diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-01-10 17:47:16 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-01-10 17:47:16 +0000 |
commit | 7a3dad3b13fdbc1d51b1421ce541955e6a3aefa3 (patch) | |
tree | 23a09c37b4f79d1924782157a85ed928a26ee9a3 /sys/dev | |
parent | a29190ad67f7205c7da73a870a1f4bd562e264a5 (diff) |
fix reading of EEPROM content on big endian arches.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/rt2560.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } /* |