Commit d998afb0 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

net/e1000: add adapter symlink into sysfs attributes

parent 16dc2880
......@@ -728,6 +728,7 @@ static int e1000_probe(struct pci_dev *pdev,
// SET_NETDEV_DEV(netdev, &pdev->dev);
netdev->vers = RTDEV_VERS_2_0;
netdev->sysbind = &pdev->dev;
pci_set_drvdata(pdev, netdev);
adapter = netdev->priv;
......
......@@ -3949,6 +3949,7 @@ static int e1000_probe(struct pci_dev *pdev,
rtdev_alloc_name(netdev, "rteth%d");
rt_rtdev_connect(netdev, &RTDEV_manager);
netdev->vers = RTDEV_VERS_2_0;
netdev->sysbind = &pdev->dev;
netdev->irq = pdev->irq;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment