From: Adrian M. <ad...@ne...> - 2007-08-25 16:59:00
|
Sorry for the generality of this, but I haven't been able to google this one... I have got a maple bus driver for the Dreamcast that is about 80% there - though it still has some hotplugging issues to be sorted. The driver resides in drivers/sh/maple To test it further I have now ported the old maple keyboard driver over to work with the new bus driver. This lives in drivers/input/keyboard The driver causes an oops when being initialised as a built in - because afaics the chain goes: driver_register -> bus_add_driver -> get_bus when, because the maple bus has not yet been registered with the system a NULL is returned and an oops is thrown (incidentally it looks like there is a bug in bus_add_driver as it returns a 0 and not an error in this case). So, how do I ensure the bus gets registered before the driver? (I could try using the keyboard driver as a module but the hotplugging issues get in the way here atm) |