summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_remove.c b/udev_remove.c
index cb5523af92..4d1b9286a0 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -152,8 +152,8 @@ int udev_remove_device(struct udevice *udev)
dbg("remove name='%s'", udev->name);
udev_db_delete_device(udev);
} else {
- dbg("'%s' not found in database, don't remove anything", udev->devpath);
- return -1;
+ dbg("'%s' not found in database, using kernel name '%s'", udev->devpath, udev->kernel_name);
+ strlcpy(udev->name, udev->kernel_name, sizeof(udev->name));
}
return delete_node(udev);