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>
This commit is contained in:
@@ -84,7 +84,7 @@ struct net_device * hostap_add_interface(struct local_info *local,
|
||||
if (strchr(dev->name, '%'))
|
||||
ret = dev_alloc_name(dev, dev->name);
|
||||
|
||||
SET_NETDEV_DEV(dev, mdev->class_dev.dev);
|
||||
SET_NETDEV_DEV(dev, mdev->dev.parent);
|
||||
if (ret >= 0)
|
||||
ret = register_netdevice(dev);
|
||||
|
||||
|
Reference in New Issue
Block a user