summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>2008-05-14 07:16:50 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-05-16 23:15:10 +0200
commit229ce3abb6d6d4598de8ef1ed1e2da8163a9bbc0 (patch)
tree0a9b4f4d41aeafb06bb1177299f28ff7dea613a4 /drivers/net/wireless/airo.c
parentwireless, airo: waitbusy() won't delay (diff)
downloadlinux-229ce3abb6d6d4598de8ef1ed1e2da8163a9bbc0.tar.xz
linux-229ce3abb6d6d4598de8ef1ed1e2da8163a9bbc0.zip
wireless: Create 'device' symlink in sysfs
Some network interfaces of the wireless drivers lack the 'device' symlink in sysfs. This patch lets the drivers create the links. Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index efb7444a26ae..4e1c690ff45f 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2668,6 +2668,7 @@ static struct net_device *init_wifidev(struct airo_info *ai,
dev->irq = ethdev->irq;
dev->base_addr = ethdev->base_addr;
dev->wireless_data = ethdev->wireless_data;
+ SET_NETDEV_DEV(dev, ethdev->dev.parent);
memcpy(dev->dev_addr, ethdev->dev_addr, dev->addr_len);
err = register_netdev(dev);
if (err<0) {