usb: kbd: Do not deregister usbkbd twice when using dm
authorHans de Goede <hdegoede@redhat.com>
Sun, 3 Apr 2016 07:18:53 +0000 (09:18 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 10 Apr 2016 15:18:42 +0000 (17:18 +0200)
commit9a80e714350a959caadfd6e2405cd1f7e8ea86d3
treea72b2511810053681941ed63be213f326f507220
parentcfb3f1cd0e022711d69ff040884357b8410865ef
usb: kbd: Do not deregister usbkbd twice when using dm

The dm usb_kbd_remove function() will deregister the usb keyboard for
us on a "usb reset" / "usb stop" so there is no need to manually call
usb_kbd_deregister() in the dm case.

This commit removes usb_kbd_deregister() in the dm case fixing the
following "usb reset" errors:

usb_kbd_remove: warning, ret=-6
device_remove: Device 'usb_kbd' failed to remove, but children are gone

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
cmd/usb.c
common/usb_kbd.c