mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
usb_kbd: fix usb_kbd_deregister when DEVICE_DEREGISTER not enable
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Remy Böhmer <linux@bohmer.net>
This commit is contained in:

committed by
Remy Bohmer

parent
aced78d852
commit
fea91edee8
@ -211,7 +211,11 @@ int drv_usb_kbd_init(void)
|
||||
/* deregistering the keyboard */
|
||||
int usb_kbd_deregister(void)
|
||||
{
|
||||
#ifdef CONFIG_SYS_DEVICE_DEREGISTER
|
||||
return device_deregister(DEVNAME);
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
Reference in New Issue
Block a user