summaryrefslogtreecommitdiff
path: root/udev-remove.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-17 23:32:17 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:41 -0700
commitca9998602336f67eb2590819eecf416977885e2a (patch)
tree0c6f246d091f8a74922b7c1d7bdede4ca5566d1e /udev-remove.c
parent1c596cc0a5357105a80ab07f0ebbe2eb330b2c28 (diff)
[PATCH] got "remove of named devices" working.
database code still needs some major cleanup.
Diffstat (limited to 'udev-remove.c')
-rw-r--r--udev-remove.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev-remove.c b/udev-remove.c
index 29063efb0d..9862a6f201 100644
--- a/udev-remove.c
+++ b/udev-remove.c
@@ -45,6 +45,11 @@ static char *get_name(char *dev, int major, int minor)
static char name[100];
char *temp;
+ temp = udevdb_get_udevice_by_sysfs(dev);
+ dbg("udevdb_get_udevice_by_sysfs returned %s", temp);
+ if (temp != NULL)
+ return temp;
+
temp = strrchr(dev, '/');
if (temp == NULL)
return NULL;