test: dm: usb: use the real device name
authorPeng Fan <peng.fan@nxp.com>
Wed, 22 May 2019 07:08:12 +0000 (07:08 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 13 Jul 2019 01:07:59 +0000 (21:07 -0400)
"keyb" is not the real device name, "keyb@3" is.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
test/dm/usb.c

index 349361754491db168d4fd5dc851f79f546a037de..ef454b0ae581e6fceddc6a2803402f8c943e34e3 100644 (file)
@@ -125,7 +125,7 @@ static int dm_test_usb_keyb(struct unit_test_state *uts)
        /* Initially there should be no characters */
        ut_asserteq(0, tstc());
 
-       ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb",
+       ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb@3",
                                              &dev));
 
        /*