[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    arcnet: com20020-pci: add missing pdev setup in netdev structure
From:       "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date:       2017-06-29 21:34:36
Message-ID: 20170629213436.1E58A22D7A () pdx-korg-gitolite-1 ! ci ! codeaurora ! org
[Download RAW message or body]

Web:        https://git.kernel.org/torvalds/c/2a0ea04c83ab82c3852c9171d2fa5cd9a1432c9b
Commit:     2a0ea04c83ab82c3852c9171d2fa5cd9a1432c9b
Parent:     cb108619f2fc77846bf7a7543517f3487f455b24
Refname:    refs/heads/master
Author:     Michael Grzeschik <m.grzeschik@pengutronix.de>
AuthorDate: Wed Jun 28 18:28:37 2017 +0200
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jun 29 15:18:37 2017 -0400

    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 <m.grzeschik@pengutronix.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/arcnet/com20020-pci.c | 1 +
 1 file changed, 1 insertion(+)

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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic