usb: USB sub-platform bug fixes.
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
13118e949b
commit
99593ec640
@@ -106,6 +106,7 @@ mraa_init()
|
|||||||
platform_type = mraa_x86_platform();
|
platform_type = mraa_x86_platform();
|
||||||
// x86 platforms have advanced_func stable in board config structure
|
// x86 platforms have advanced_func stable in board config structure
|
||||||
free(advance_func);
|
free(advance_func);
|
||||||
|
if (plat != NULL)
|
||||||
advance_func = plat->adv_func;
|
advance_func = plat->adv_func;
|
||||||
#elif defined(ARMPLAT)
|
#elif defined(ARMPLAT)
|
||||||
// Use runtime ARM platform detection
|
// Use runtime ARM platform detection
|
||||||
|
|||||||
@@ -55,8 +55,10 @@ mraa_usb_platform_extender(mraa_board_t* board)
|
|||||||
syslog(LOG_ERR, "Unknown USB Platform Extender, currently not supported by MRAA");
|
syslog(LOG_ERR, "Unknown USB Platform Extender, currently not supported by MRAA");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sub_plat != NULL) {
|
||||||
sub_plat->platform_type = platform_type;
|
sub_plat->platform_type = platform_type;
|
||||||
board->sub_platform = sub_plat;
|
board->sub_platform = sub_plat;
|
||||||
|
}
|
||||||
return platform_type;
|
return platform_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user