summaryrefslogtreecommitdiff
path: root/namedev_parse.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-10 05:15:07 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:51:00 -0700
commit882af735ec18cb4e6ba6f59ca60f8266cc96c330 (patch)
tree9a2953bd0ea3c94cbf8dcda3b42842b959e07347 /namedev_parse.c
parent783272f045faf39325678eef0d55a41d7306e2d3 (diff)
[PATCH] remove PLACE key match
ID should do the same, cause we walk up the chain of devices on the physical device and can match for the name of every device there with the ID key.
Diffstat (limited to 'namedev_parse.c')
-rw-r--r--namedev_parse.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index b19a5f26f5..3be408932b 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -59,11 +59,11 @@ static int add_config_dev(struct config_device *new_dev)
void dump_config_dev(struct config_device *dev)
{
- dbg_parse("name='%s', symlink='%s', bus='%s', place='%s', id='%s', "
+ dbg_parse("name='%s', symlink='%s', bus='%s', id='%s', "
"sysfs_file[0]='%s', sysfs_value[0]='%s', "
"kernel='%s', program='%s', result='%s'"
"owner='%s', group='%s', mode=%#o",
- dev->name, dev->symlink, dev->bus, dev->place, dev->id,
+ dev->name, dev->symlink, dev->bus, dev->id,
dev->sysfs_pair[0].file, dev->sysfs_pair[0].value,
dev->kernel, dev->program, dev->result,
dev->owner, dev->group, dev->mode);
@@ -196,12 +196,6 @@ static int namedev_parse(struct udevice *udev, const char *filename)
continue;
}
- if (strcasecmp(temp2, FIELD_PLACE) == 0) {
- strlcpy(dev.place, temp3, sizeof(dev.place));
- valid = 1;
- continue;
- }
-
if (strncasecmp(temp2, FIELD_SYSFS, sizeof(FIELD_SYSFS)-1) == 0) {
struct sysfs_pair *pair = &dev.sysfs_pair[0];
int sysfs_pair_num = 0;