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/iseries_veth.c | |
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/iseries_veth.c')
-rw-r--r-- | drivers/net/iseries_veth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index 2194b567239f..0e9ba3c3faf7 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
@@ -1102,7 +1102,7 @@ static struct net_device * __init veth_probe_one(int vlan, | |||
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | kobject_init(&port->kobject); | 1104 | kobject_init(&port->kobject); |
1105 | port->kobject.parent = &dev->class_dev.kobj; | 1105 | port->kobject.parent = &dev->dev.kobj; |
1106 | port->kobject.ktype = &veth_port_ktype; | 1106 | port->kobject.ktype = &veth_port_ktype; |
1107 | kobject_set_name(&port->kobject, "veth_port"); | 1107 | kobject_set_name(&port->kobject, "veth_port"); |
1108 | if (0 != kobject_add(&port->kobject)) | 1108 | if (0 != kobject_add(&port->kobject)) |