Skip to content

Commit

Permalink
ieee1394: eth1394: revert parent device to that in 2.6.20
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Richter committed Jul 9, 2007
1 parent a0e857e commit 8e4dc40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ieee1394/eth1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ static void ether1394_add_host(struct hpsb_host *host)
}

SET_MODULE_OWNER(dev);

/* This used to be &host->device in Linux 2.6.20 and before. */
SET_NETDEV_DEV(dev, host->device.parent);
SET_NETDEV_DEV(dev, &host->device);

priv = netdev_priv(dev);
INIT_LIST_HEAD(&priv->ip_node_list);
Expand Down

0 comments on commit 8e4dc40

Please sign in to comment.