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 | |
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')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/spectrum_cs.c | 2 |
4 files changed, 5 insertions, 5 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 | ||
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 936c888e03e1..656f216b857f 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -4293,8 +4293,8 @@ static void orinoco_get_drvinfo(struct net_device *dev, | |||
4293 | strncpy(info->driver, DRIVER_NAME, sizeof(info->driver) - 1); | 4293 | strncpy(info->driver, DRIVER_NAME, sizeof(info->driver) - 1); |
4294 | strncpy(info->version, DRIVER_VERSION, sizeof(info->version) - 1); | 4294 | strncpy(info->version, DRIVER_VERSION, sizeof(info->version) - 1); |
4295 | strncpy(info->fw_version, priv->fw_name, sizeof(info->fw_version) - 1); | 4295 | strncpy(info->fw_version, priv->fw_name, sizeof(info->fw_version) - 1); |
4296 | if (dev->class_dev.dev) | 4296 | if (dev->dev.parent) |
4297 | strncpy(info->bus_info, dev->class_dev.dev->bus_id, | 4297 | strncpy(info->bus_info, dev->dev.parent->bus_id, |
4298 | sizeof(info->bus_info) - 1); | 4298 | sizeof(info->bus_info) - 1); |
4299 | else | 4299 | else |
4300 | snprintf(info->bus_info, sizeof(info->bus_info) - 1, | 4300 | snprintf(info->bus_info, sizeof(info->bus_info) - 1, |
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c index d08ae8d2726c..d1e502236b2a 100644 --- a/drivers/net/wireless/orinoco_cs.c +++ b/drivers/net/wireless/orinoco_cs.c | |||
@@ -332,7 +332,7 @@ orinoco_cs_config(struct pcmcia_device *link) | |||
332 | 332 | ||
333 | /* Finally, report what we've done */ | 333 | /* Finally, report what we've done */ |
334 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " | 334 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " |
335 | "0x%04x-0x%04x\n", dev->name, dev->class_dev.dev->bus_id, | 335 | "0x%04x-0x%04x\n", dev->name, dev->dev.parent->bus_id, |
336 | link->irq.AssignedIRQ, link->io.BasePort1, | 336 | link->irq.AssignedIRQ, link->io.BasePort1, |
337 | link->io.BasePort1 + link->io.NumPorts1 - 1); | 337 | link->io.BasePort1 + link->io.NumPorts1 - 1); |
338 | 338 | ||
diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c index cf2d1486b01d..af70460f008a 100644 --- a/drivers/net/wireless/spectrum_cs.c +++ b/drivers/net/wireless/spectrum_cs.c | |||
@@ -806,7 +806,7 @@ spectrum_cs_config(struct pcmcia_device *link) | |||
806 | 806 | ||
807 | /* Finally, report what we've done */ | 807 | /* Finally, report what we've done */ |
808 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " | 808 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " |
809 | "0x%04x-0x%04x\n", dev->name, dev->class_dev.dev->bus_id, | 809 | "0x%04x-0x%04x\n", dev->name, dev->dev.parent->bus_id, |
810 | link->irq.AssignedIRQ, link->io.BasePort1, | 810 | link->irq.AssignedIRQ, link->io.BasePort1, |
811 | link->io.BasePort1 + link->io.NumPorts1 - 1); | 811 | link->io.BasePort1 + link->io.NumPorts1 - 1); |
812 | 812 | ||