1
0
Fork 0
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:
Frank Gevaerts 2009-05-24 20:46:57 +00:00
parent 964106a20d
commit 4f2dfcc01b

View file

@ -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();
}