aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-22 13:45:50 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:11 -0500
commit0e5ce1f33049a823f508f4a3f53ba186b12396b8 (patch)
tree1bd83ce139e0531d38947d1aa95670f5eca3b826 /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent5b5e807fb8b56e31319fe8b27e1b072bb80862a8 (diff)
misc wireless annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 8d603257b926..b662ff3b9141 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -1566,7 +1566,7 @@ static void get_eeprom_mac(struct iwl3945_priv *priv, u8 *mac)
1566 */ 1566 */
1567int iwl3945_eeprom_init(struct iwl3945_priv *priv) 1567int iwl3945_eeprom_init(struct iwl3945_priv *priv)
1568{ 1568{
1569 u16 *e = (u16 *)&priv->eeprom; 1569 __le16 *e = (__le16 *)&priv->eeprom;
1570 u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP); 1570 u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP);
1571 u32 r; 1571 u32 r;
1572 int sz = sizeof(priv->eeprom); 1572 int sz = sizeof(priv->eeprom);
@@ -1609,7 +1609,7 @@ int iwl3945_eeprom_init(struct iwl3945_priv *priv)
1609 IWL_ERROR("Time out reading EEPROM[%d]", addr); 1609 IWL_ERROR("Time out reading EEPROM[%d]", addr);
1610 return -ETIMEDOUT; 1610 return -ETIMEDOUT;
1611 } 1611 }
1612 e[addr / 2] = le16_to_cpu(r >> 16); 1612 e[addr / 2] = cpu_to_le16(r >> 16);
1613 } 1613 }
1614 1614
1615 return 0; 1615 return 0;