net: e1000: set edev parent pointer
This way the ethernet device will show up at the correct point in the device hierarchy. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
02ede48e67
commit
86b716c06a
|
@ -3600,6 +3600,7 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
e1000_get_ethaddr(edev, edev->ethaddr);
|
||||
|
||||
/* Set up the function pointers and register the device */
|
||||
edev->parent = &pdev->dev;
|
||||
edev->init = e1000_init;
|
||||
edev->recv = e1000_poll;
|
||||
edev->send = e1000_transmit;
|
||||
|
|
Loading…
Reference in New Issue