From: Michael Grzeschik Date: Wed, 28 Jun 2017 16:28:37 +0000 (+0200) Subject: arcnet: com20020-pci: add missing pdev setup in netdev structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a0ea04c83ab82c3852c9171d2fa5cd9a1432c9b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arcnet: com20020-pci: add missing pdev setup in netdev structure We add the pdev data to the pci devices netdev structure. This way the interface get consistent device names in the userspace (udev). Signed-off-by: Michael Grzeschik Signed-off-by: David S. Miller --- diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index fec2df2c869f..47f80b83dcf4 100644 --- a/drivers/net/arcnet/com20020-pci.c +++ b/drivers/net/arcnet/com20020-pci.c @@ -167,6 +167,7 @@ static int com20020pci_probe(struct pci_dev *pdev, arcnet_outb(0x00, ioaddr, COM20020_REG_W_COMMAND); arcnet_inb(ioaddr, COM20020_REG_R_DIAGSTAT); + SET_NETDEV_DEV(dev, &pdev->dev); dev->base_addr = ioaddr; dev->dev_addr[0] = node; dev->irq = pdev->irq;