mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-03 07:54:24 +01: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:
parent
aced78d852
commit
fea91edee8
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
|
|
|||
|
|
@ -91,7 +91,9 @@ extern char *stdio_names[MAX_FILES];
|
|||
*/
|
||||
int device_register (device_t * dev);
|
||||
int devices_init (void);
|
||||
#ifdef CONFIG_SYS_DEVICE_DEREGISTER
|
||||
int device_deregister(char *devname);
|
||||
#endif
|
||||
struct list_head* device_get_list(void);
|
||||
device_t* device_get_by_name(char* name);
|
||||
device_t* device_clone(device_t *dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue