]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PowerPC Virtual Ethernet links to /sys/class/net/ethX
authorSantiago Leon <santil@us.ibm.com>
Fri, 14 May 2004 13:47:15 +0000 (06:47 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 14 May 2004 13:47:15 +0000 (06:47 -0700)
This adds links to the driver and device inside /sys/class/net/ethX for
PowerPC Virtual Ethernet devices.

drivers/net/ibmveth.c

index 7416d05e23ecb51f367cc238660880d8d0631a6d..807225ae0f4b27a29f21eb0dee880c9d4c4ecf44 100644 (file)
@@ -935,6 +935,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
        netdev->do_ioctl           = ibmveth_ioctl;
        netdev->ethtool_ops           = &netdev_ethtool_ops;
        netdev->change_mtu         = ibmveth_change_mtu;
+       SET_NETDEV_DEV(netdev, &dev->dev);
 
        memcpy(&netdev->dev_addr, &adapter->mac_addr, netdev->addr_len);