netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Markus Lottmann <markus.lottmann1986@gmail.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, Markus Lottmann <markus.lottmann1986@gmail.com>
Subject: [PATCH] drivers: net: Register Micrel ksz884x network devices in PCI device tree.
Date: Wed, 14 May 2014 14:02:04 +0200	[thread overview]
Message-ID: <1400068924-13617-1-git-send-email-markus.lottmann1986@gmail.com> (raw)

This unifies the behaviour with other network device drivers and
allows for a matching of the PCI device path in UDEV rules.

Signed-off-by: Markus Lottmann <markus.lottmann1986@gmail.com>
---
 drivers/net/ethernet/micrel/ksz884x.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 14ac0e2..023f2f9 100644
--- a/drivers/net/ethernet/micrel/ksz884x.c
+++ b/drivers/net/ethernet/micrel/ksz884x.c
@@ -7072,6 +7072,7 @@ static int pcidev_init(struct pci_dev *pdev, const struct pci_device_id *id)
 		dev = alloc_etherdev(sizeof(struct dev_priv));
 		if (!dev)
 			goto pcidev_init_reg_err;
+		SET_NETDEV_DEV(dev, &pdev->dev);
 		info->netdev[i] = dev;
 
 		priv = netdev_priv(dev);
-- 
1.7.10.4

             reply	other threads:[~2014-05-14 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 12:02 Markus Lottmann [this message]
2014-05-15 19:44 ` [PATCH] drivers: net: Register Micrel ksz884x network devices in PCI device tree David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400068924-13617-1-git-send-email-markus.lottmann1986@gmail.com \
    --to=markus.lottmann1986@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).