mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
ieee1394: eth1394: revert parent device to that in 2.6.20
After ieee1394 was converted away from class_device like the networking subsystem was already in 2.6.21, eth1394's device may point to the fw-host device as its parent again like in 2.6.20. This affects userspace tools which examine the sysfs representation of eth1394's device. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
a0e857eeff
commit
8e4dc400b7
@ -599,9 +599,7 @@ static void ether1394_add_host(struct hpsb_host *host)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SET_MODULE_OWNER(dev);
|
SET_MODULE_OWNER(dev);
|
||||||
|
SET_NETDEV_DEV(dev, &host->device);
|
||||||
/* This used to be &host->device in Linux 2.6.20 and before. */
|
|
||||||
SET_NETDEV_DEV(dev, host->device.parent);
|
|
||||||
|
|
||||||
priv = netdev_priv(dev);
|
priv = netdev_priv(dev);
|
||||||
INIT_LIST_HEAD(&priv->ip_node_list);
|
INIT_LIST_HEAD(&priv->ip_node_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user