diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-02 04:05:06 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-02 04:05:06 +0100 |
commit | 0747dd884adfdf2bcd617655c44a87cb7a6eda5f (patch) | |
tree | e9da9e87a702784f7b16f060de8307affe8a38d1 | |
parent | 8ebe9547a81408061ecf3571d31117a18c1810b8 (diff) |
use libsysfs to translate the class linke to the device path
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r-- | udevstart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udevstart.c b/udevstart.c index ce96f38879..057d59fcaa 100644 --- a/udevstart.c +++ b/udevstart.c @@ -139,7 +139,7 @@ static int add_device(const char *devpath, const char *subsystem) return -1; } - udev_init_device(&udev, devpath, subsystem, "add"); + udev_init_device(&udev, &class_dev->path[strlen(sysfs_path)], subsystem, "add"); udev.devt = get_devt(class_dev); if (!udev.devt && udev.type != DEV_NET) { dbg("sysfs_open_class_device_path failed"); |