diff options
author | Gertjan van Wingerde <gwingerde@kpnplanet.nl> | 2008-06-16 13:55:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-26 16:49:15 -0400 |
commit | 14a3bf89212b5c758bd39bb4afc972c4ba6d599f (patch) | |
tree | 8ea03c6d2c69a0875c69fd13b4ecd772456cf710 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | c95edf5432f097c926dd3f59239ecde80da3b214 (diff) |
rt2x00: Convert rt2x00 to use generic DMA-mapping API
At the same time clean up the device administration a bit, by storing a pointer
to struct device instead of a void pointer that is dependent on the type of
device. The normal PCI and USB subsystem provided macros can be used to convert
the device pointer to the right type.
This makes the rt2x00 driver a bit more type-safe.
Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 9851cefaabf3..6b6e7b93d2ad 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1588,7 +1588,7 @@ static void rt2500usb_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | |||
1588 | 1588 | ||
1589 | rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE; | 1589 | rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE; |
1590 | 1590 | ||
1591 | SET_IEEE80211_DEV(rt2x00dev->hw, &rt2x00dev_usb(rt2x00dev)->dev); | 1591 | SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev); |
1592 | SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, | 1592 | SET_IEEE80211_PERM_ADDR(rt2x00dev->hw, |
1593 | rt2x00_eeprom_addr(rt2x00dev, | 1593 | rt2x00_eeprom_addr(rt2x00dev, |
1594 | EEPROM_MAC_ADDR_0)); | 1594 | EEPROM_MAC_ADDR_0)); |
@@ -1672,7 +1672,8 @@ static int rt2500usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
1672 | static int rt2500usb_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb) | 1672 | static int rt2500usb_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb) |
1673 | { | 1673 | { |
1674 | struct rt2x00_dev *rt2x00dev = hw->priv; | 1674 | struct rt2x00_dev *rt2x00dev = hw->priv; |
1675 | struct usb_device *usb_dev = rt2x00dev_usb_dev(rt2x00dev); | 1675 | struct usb_device *usb_dev = |
1676 | interface_to_usbdev(to_usb_interface(rt2x00dev->dev)); | ||
1676 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1677 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1677 | struct rt2x00_intf *intf = vif_to_intf(tx_info->control.vif); | 1678 | struct rt2x00_intf *intf = vif_to_intf(tx_info->control.vif); |
1678 | struct queue_entry_priv_usb_bcn *bcn_priv; | 1679 | struct queue_entry_priv_usb_bcn *bcn_priv; |