diff options
Diffstat (limited to 'udevinfo.c')
-rw-r--r-- | udevinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udevinfo.c b/udevinfo.c index a6daf46be6..e9de6e5e09 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -341,8 +341,7 @@ static int process_options(int argc, char *argv[]) } } memset(&udev, 0x00, sizeof(struct udevice)); - strfieldcpy(udev.devpath, pos); - retval = udev_db_get_device(&udev); + retval = udev_db_get_device_by_devpath(&udev, pos); if (retval != 0) { printf("device not found in database\n"); goto exit; |