Skip to content
Snippets Groups Projects
Commit 9a80e714 authored by Hans de Goede's avatar Hans de Goede Committed by Marek Vasut
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
parent cfb3f1cd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment