[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
2005-04-26 21:32:27 -07:00
committed by Greg KH
parent 44a523e30d
commit 7a4877bf6f
+1 -1
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: