All of lore.kernel.org
 help / color / mirror / Atom feed
* missing sysfs device symlink for platform devices
@ 2006-03-11  0:34 Olaf Hering
  2006-04-21 15:40 ` [PATCH] mv643xx_eth: provide sysfs class device symlink Olaf Hering
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2006-03-11  0:34 UTC (permalink / raw)
  To: linux-kernel


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",


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-21 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-11  0:34 missing sysfs device symlink for platform devices Olaf Hering
2006-04-21 15:40 ` [PATCH] mv643xx_eth: provide sysfs class device symlink Olaf Hering

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.