From 7a4877bf6fea5f1d1d8390b7efd6b8a53003631a Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Mon, 16 Feb 2004 18:19:48 -0800 Subject: [PATCH] [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. --- namedev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namedev.c b/namedev.c index 018fd452..f138fe97 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: -- 2.39.5