diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-03 11:13:51 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-03 15:12:28 +0100 |
commit | 61ee8cc92d5298da4fd4f46016991369a933ef7f (patch) | |
tree | 497e66aa22e7e4a15ffba23cc30fdff66c9df754 /udev/lib/libudev-device.c | |
parent | 883012d49b0635ab20898a649fcce6db21288571 (diff) |
libudev: device - remove udev_device_get_parent_with_subsystem
Diffstat (limited to 'udev/lib/libudev-device.c')
-rw-r--r-- | udev/lib/libudev-device.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index 7c803594e4..0cb5921281 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -541,22 +541,6 @@ struct udev_device *udev_device_get_parent(struct udev_device *udev_device) return udev_device->parent_device; } -struct udev_device *udev_device_get_parent_with_subsystem(struct udev_device *udev_device, const char *subsystem) -{ - struct udev_device *parent; - - parent = udev_device_get_parent(udev_device); - while (parent != NULL) { - const char *parent_subsystem; - - parent_subsystem = udev_device_get_subsystem(parent); - if (parent_subsystem != NULL && strcmp(parent_subsystem, subsystem) == 0) - break; - parent = udev_device_get_parent(parent); - } - return parent; -} - struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype) { struct udev_device *parent; |