diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-22 13:45:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:11 -0500 |
commit | 0e5ce1f33049a823f508f4a3f53ba186b12396b8 (patch) | |
tree | 1bd83ce139e0531d38947d1aa95670f5eca3b826 /drivers/net/wireless/adm8211.c | |
parent | 5b5e807fb8b56e31319fe8b27e1b072bb80862a8 (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/adm8211.c')
-rw-r--r-- | drivers/net/wireless/adm8211.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index 5bf7913aadda..14d90a9409aa 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
@@ -104,7 +104,7 @@ static int adm8211_read_eeprom(struct ieee80211_hw *dev) | |||
104 | if (!priv->eeprom) | 104 | if (!priv->eeprom) |
105 | return -ENOMEM; | 105 | return -ENOMEM; |
106 | 106 | ||
107 | eeprom_93cx6_multiread(&eeprom, 0, (__le16 __force *)priv->eeprom, words); | 107 | eeprom_93cx6_multiread(&eeprom, 0, (__le16 *)priv->eeprom, words); |
108 | 108 | ||
109 | cr49 = le16_to_cpu(priv->eeprom->cr49); | 109 | cr49 = le16_to_cpu(priv->eeprom->cr49); |
110 | priv->rf_type = (cr49 >> 3) & 0x7; | 110 | priv->rf_type = (cr49 >> 3) & 0x7; |
@@ -1867,9 +1867,9 @@ static int __devinit adm8211_probe(struct pci_dev *pdev, | |||
1867 | goto err_iounmap; | 1867 | goto err_iounmap; |
1868 | } | 1868 | } |
1869 | 1869 | ||
1870 | *(u32 *)perm_addr = le32_to_cpu((__force __le32)ADM8211_CSR_READ(PAR0)); | 1870 | *(__le32 *)perm_addr = cpu_to_le32(ADM8211_CSR_READ(PAR0)); |
1871 | *(u16 *)&perm_addr[4] = | 1871 | *(__le16 *)&perm_addr[4] = |
1872 | le16_to_cpu((__force __le16)ADM8211_CSR_READ(PAR1) & 0xFFFF); | 1872 | cpu_to_le16(ADM8211_CSR_READ(PAR1) & 0xFFFF); |
1873 | 1873 | ||
1874 | if (!is_valid_ether_addr(perm_addr)) { | 1874 | if (!is_valid_ether_addr(perm_addr)) { |
1875 | printk(KERN_WARNING "%s (adm8211): Invalid hwaddr in EEPROM!\n", | 1875 | printk(KERN_WARNING "%s (adm8211): Invalid hwaddr in EEPROM!\n", |