diff options
Diffstat (limited to 'lib/sysfs_bus.c')
-rw-r--r-- | lib/sysfs_bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sysfs_bus.c b/lib/sysfs_bus.c index 0a7b171..3723fe3 100644 --- a/lib/sysfs_bus.c +++ b/lib/sysfs_bus.c @@ -122,7 +122,7 @@ struct dlist *sysfs_get_bus_devices(struct sysfs_bus *bus) } dlist_for_each_data(devdir->links, curl, struct sysfs_link) { - bdev = sysfs_open_device(curl->target); + bdev = sysfs_open_device_path(curl->target); if (bdev == NULL) { dprintf("Error opening device at %s\n", curl->target); continue; @@ -166,7 +166,7 @@ struct dlist *sysfs_get_bus_drivers(struct sysfs_bus *bus) return NULL; } dlist_for_each_data(drvdir->subdirs, cursub, struct sysfs_directory) { - driver = sysfs_open_driver(cursub->path); + driver = sysfs_open_driver_path(cursub->path); if (driver == NULL) { dprintf("Error opening driver at %s\n", cursub->path); continue; @@ -414,7 +414,7 @@ struct sysfs_device *sysfs_open_bus_device(unsigned char *busname, strcat(path, "/"); strcat(path, dev_id); - rdev = sysfs_open_device(path); + rdev = sysfs_open_device_path(path); if (rdev == NULL) { dprintf("Error getting device %s on bus %s\n", dev_id, busname); |