[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:
parent
44a523e30d
commit
7a4877bf6f
|
@ -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 */
|
/* no rule was found so we use the kernel name */
|
||||||
strfieldcpy(udev->name, class_dev->name);
|
strfieldcpy(udev->name, udev->kernel_name);
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
found:
|
found:
|
||||||
|
|
Loading…
Reference in a new issue