ar9170usb: module link in sysfs
authorChristian Lamparter <chunkeey@web.de>
Sat, 20 Jun 2009 03:10:24 +0000 (05:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:01:57 +0000 (15:01 -0400)
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>
drivers/net/wireless/ath/ar9170/usb.c

index 754b1f8d8da944155e3a2669499327749de491c9..1aec7afdffa7b784158770fc214930f04340626f 100644 (file)
@@ -779,7 +779,7 @@ static int ar9170_usb_probe(struct usb_interface *intf,
        aru->req_one_stage_fw = ar9170_requires_one_stage(id);
 
        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->tx_pending);