diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2002-04-09 15:14:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 13:37:11 -0500 |
commit | 43cb76d91ee85f579a69d42bc8efc08bac560278 (patch) | |
tree | f5c4766a6639fee3685dbbfc9110bb334af9e6dd /drivers/net/wireless/hostap | |
parent | 2943ecf2ed32632473c06f1975db47a7aa98c10f (diff) |
Network: convert network devices to use struct device instead of class_device
This lets the network core have the ability to handle suspend/resume
issues, if it wants to.
Thanks to Frederik Deweerdt <frederik.deweerdt@gmail.com> for the arm
driver fixes.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 04c19cefa1da..9077e6edde34 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -84,7 +84,7 @@ struct net_device * hostap_add_interface(struct local_info *local, | |||
84 | if (strchr(dev->name, '%')) | 84 | if (strchr(dev->name, '%')) |
85 | ret = dev_alloc_name(dev, dev->name); | 85 | ret = dev_alloc_name(dev, dev->name); |
86 | 86 | ||
87 | SET_NETDEV_DEV(dev, mdev->class_dev.dev); | 87 | SET_NETDEV_DEV(dev, mdev->dev.parent); |
88 | if (ret >= 0) | 88 | if (ret >= 0) |
89 | ret = register_netdevice(dev); | 89 | ret = register_netdevice(dev); |
90 | 90 | ||