summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-16 18:19:48 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:27 -0700
commit7a4877bf6fea5f1d1d8390b7efd6b8a53003631a (patch)
treeda83fa14c383b940058101c6650ad26cbdd42b97 /namedev.c
parent44a523e30d79efc5aca9a05073b32f5924191244 (diff)
[PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule.
This fixes the bug with names that have a ! in them and no rule to match.
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index 018fd452e9..f138fe9769 100644
--- a/namedev.c
+++ b/namedev.c
@@ -745,7 +745,7 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud
}
/* no rule was found so we use the kernel name */
- strfieldcpy(udev->name, class_dev->name);
+ strfieldcpy(udev->name, udev->kernel_name);
goto done;
found: