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:
@@ -1102,7 +1102,7 @@ static struct net_device * __init veth_probe_one(int vlan,
|
||||
}
|
||||
|
||||
kobject_init(&port->kobject);
|
||||
port->kobject.parent = &dev->class_dev.kobj;
|
||||
port->kobject.parent = &dev->dev.kobj;
|
||||
port->kobject.ktype = &veth_port_ktype;
|
||||
kobject_set_name(&port->kobject, "veth_port");
|
||||
if (0 != kobject_add(&port->kobject))
|
||||
|
||||
Reference in New Issue
Block a user