chiark / gitweb /
[PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule.
authorgreg@kroah.com <greg@kroah.com>
Tue, 17 Feb 2004 02:19:48 +0000 (18:19 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
This fixes the bug with names that have a ! in them and no rule to match.

namedev.c

index 018fd452e99096edc05207f47fbbda2bbea7e8e2..f138fe976955fe99bb3c24318acb132369619c1b 100644 (file)
--- 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: