[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.
This commit is contained in:
greg@kroah.com 2004-02-16 18:19:48 -08:00 committed by Greg KH
parent 44a523e30d
commit 7a4877bf6f
1 changed files with 1 additions and 1 deletions

View File

@ -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: