ar9170usb: module link in sysfs

Andrey Yurovsky reported that the driver forwarded erroneously the
parent device structure instead of the real thing, which of course
led to some dodgy sysfs links (at least?).

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Christian Lamparter 2009-06-20 05:10:24 +02:00 committed by John W. Linville
parent 2c2f3b3388
commit 92179986ba
1 changed files with 1 additions and 1 deletions

View File

@ -779,7 +779,7 @@ static int ar9170_usb_probe(struct usb_interface *intf,
aru->req_one_stage_fw = ar9170_requires_one_stage(id); aru->req_one_stage_fw = ar9170_requires_one_stage(id);
usb_set_intfdata(intf, aru); usb_set_intfdata(intf, aru);
SET_IEEE80211_DEV(ar->hw, &udev->dev); SET_IEEE80211_DEV(ar->hw, &intf->dev);
init_usb_anchor(&aru->rx_submitted); init_usb_anchor(&aru->rx_submitted);
init_usb_anchor(&aru->tx_pending); init_usb_anchor(&aru->tx_pending);