summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-21 20:19:09 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:42 -0700
commitc056c5141b16fe95485eeb233fe8b90954686a60 (patch)
tree0e5ff6219b7bffce255d79ca132296f131b4e4c1 /udev-add.c
parentd4e52dd0d95c21ccda50310404be4b5a540cc498 (diff)
[PATCH] make config files, sysfs root, and udev root configurable from config variables
This will make running tests a lot simpler.
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/udev-add.c b/udev-add.c
index 7906638a7f..d9d7cab103 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -34,8 +34,6 @@
#include "udevdb.h"
#include "libsysfs/libsysfs.h"
-static char sysfs_path[SYSFS_PATH_MAX];
-
/*
* Right now the major/minor of a device is stored in a file called
* "dev" in sysfs.
@@ -75,7 +73,7 @@ static int create_node(struct udevice *dev)
char filename[255];
int retval = 0;
- strncpy(filename, UDEV_ROOT, sizeof(filename));
+ strncpy(filename, udev_root, sizeof(filename));
strncat(filename, dev->name, sizeof(filename));
switch (dev->type) {
@@ -171,13 +169,6 @@ int udev_add_device(char *path, char *subsystem)
else
dev.type = 'c';
- retval = sysfs_get_mnt_path(sysfs_path, SYSFS_PATH_MAX);
- dbg("sysfs_path = %s", sysfs_path);
- if (retval) {
- dbg("sysfs_get_mnt_path failed");
- goto exit;
- }
-
retval = sleep_for_dev(path);
if (retval)
goto exit;