forked from len0rd/rockbox
always call the class driver init function. This is needed because they are called before the usb_core_enable_driver() calls, so depending on enabled status breaks things
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21069 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
964106a20d
commit
4f2dfcc01b
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ void usb_core_init(void)
|
|||
* won't be used. This simplifies other logic (i.e. we don't need to know
|
||||
* yet which drivers will be enabled */
|
||||
for(i=0;i<USB_NUM_DRIVERS;i++) {
|
||||
if(drivers[i].enabled && drivers[i].init != NULL)
|
||||
if(drivers[i].init != NULL)
|
||||
drivers[i].init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue