All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: linux-kernel@vger.kernel.org
Subject: missing sysfs device symlink for platform devices
Date: Sat, 11 Mar 2006 01:34:28 +0100	[thread overview]
Message-ID: <20060311003428.GA17309@suse.de> (raw)


Why is the /sys/class/net/eth0/device symlink not created for the
mv643xx_eth driver? Does this work for other platform device drivers?
Seems to work for the ps2 keyboard at least.

/sys/class/input/input1/device -> ../../../devices/platform/i8042/serio1


Index: linux-2.6.16-rc5-olh/drivers/net/mv643xx_eth.c
===================================================================
--- linux-2.6.16-rc5-olh.orig/drivers/net/mv643xx_eth.c
+++ linux-2.6.16-rc5-olh/drivers/net/mv643xx_eth.c
@@ -1449,6 +1452,7 @@ static int mv643xx_eth_probe(struct plat
        if (err)
                goto out;

+       SET_NETDEV_DEV(dev, &pdev->dev);
        p = dev->dev_addr;
        printk(KERN_NOTICE
                "%s: port %d with MAC address %02x:%02x:%02x:%02x:%02x:%02x\n",


             reply	other threads:[~2006-03-11  0:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-11  0:34 Olaf Hering [this message]
2006-04-21 15:40 ` [PATCH] mv643xx_eth: provide sysfs class device symlink Olaf Hering

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=20060311003428.GA17309@suse.de \
    --to=olh@suse.de \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.