aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tulip/de2104x.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-23 00:43:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:00 -0400
commitc559a5bc9417c00ba2df59397a27eaf8d8e52aec (patch)
treed3f0896f675bb98824d87090423f49f5eb3204b2 /drivers/net/tulip/de2104x.c
parent701181ac1d9ac465a3614061cb60ded4033c4d07 (diff)
tulip: endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tulip/de2104x.c')
-rw-r--r--drivers/net/tulip/de2104x.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
index f12e33a17363..77d9dd7ea34f 100644
--- a/drivers/net/tulip/de2104x.c
+++ b/drivers/net/tulip/de2104x.c
@@ -264,10 +264,10 @@ struct de_srom_info_leaf {
264} __attribute__((packed)); 264} __attribute__((packed));
265 265
266struct de_desc { 266struct de_desc {
267 u32 opts1; 267 __le32 opts1;
268 u32 opts2; 268 __le32 opts2;
269 u32 addr1; 269 __le32 addr1;
270 u32 addr2; 270 __le32 addr2;
271}; 271};
272 272
273struct media_info { 273struct media_info {
@@ -1771,8 +1771,8 @@ static void __devinit de21041_get_srom_info (struct de_private *de)
1771 1771
1772 /* download entire eeprom */ 1772 /* download entire eeprom */
1773 for (i = 0; i < DE_EEPROM_WORDS; i++) 1773 for (i = 0; i < DE_EEPROM_WORDS; i++)
1774 ((u16 *)ee_data)[i] = 1774 ((__le16 *)ee_data)[i] =
1775 le16_to_cpu(tulip_read_eeprom(de->regs, i, ee_addr_size)); 1775 cpu_to_le16(tulip_read_eeprom(de->regs, i, ee_addr_size));
1776 1776
1777 /* DEC now has a specification but early board makers 1777 /* DEC now has a specification but early board makers
1778 just put the address in the first EEPROM locations. */ 1778 just put the address in the first EEPROM locations. */