summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-21 22:28:32 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:04:10 -0700
commit9d496c74f3a6b1963727b515126e87e64abe046c (patch)
tree72802387569d3b4083fd6cac3f4b69c0a1a375b4 /udev-add.c
parentd41120879358f783eb1a457f340c1a4b538a9410 (diff)
[PATCH] got rid of struct device_attr
namedev.c is still a mess, that's up next after testing...
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/udev-add.c b/udev-add.c
index 7d0bdadcb7..3b0e4ddf0e 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -161,7 +161,6 @@ int udev_add_device(char *path, char *subsystem)
{
struct sysfs_class_device *class_dev;
struct udevice dev;
- struct device_attr attr;
int retval = -EINVAL;
/* for now, the block layer is the only place where block devices are */
@@ -178,7 +177,7 @@ int udev_add_device(char *path, char *subsystem)
if (class_dev == NULL)
goto exit;
- retval = namedev_name_device(class_dev, &attr);
+ retval = namedev_name_device(class_dev, &dev);
if (retval)
return retval;
@@ -188,10 +187,10 @@ int udev_add_device(char *path, char *subsystem)
goto exit;
}
- strcpy(dev.name, attr.name);
- strcpy(dev.owner, attr.owner);
- strcpy(dev.group, attr.group);
- dev.mode = attr.mode;
+// strcpy(dev.name, attr.name);
+// strcpy(dev.owner, attr.owner);
+// strcpy(dev.group, attr.group);
+// dev.mode = attr.mode;
retval = udevdb_add_dev(path, &dev);
if (retval != 0)