gp_xbox: Do not allow unitialized driver to be loaded

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
Amir Hammad 2015-07-13 16:18:03 +02:00
parent f8658f9411
commit 09c861c975

View file

@ -77,8 +77,8 @@ void gp_xbox_driver_init(const gp_xbox_config_t *config)
static void *init(void *usbh_dev)
{
if (!initialized) {
LOG_PRINTF("driver not initialized");
return false;
LOG_PRINTF("\n%s/%d : driver not initialized\r\n", __FILE__, __LINE__);
return 0;
}
uint32_t i;