summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_remove.c b/udev_remove.c
index 0ba6962cad..22a363ed34 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -150,7 +150,7 @@ int udev_remove_device(struct udevice *udev)
if (udev->type != BLOCK && udev->type != CLASS)
return 0;
- retval = udev_db_get_device(udev);
+ retval = udev_db_get_device_by_devpath(udev, udev->devpath);
if (retval) {
/* fall back to kernel name */
temp = strrchr(udev->devpath, '/');