Private
Public Access
2
0

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:
Henry Bruce
2015-07-23 15:32:26 -07:00
committed by Brendan Le Foll
parent 13118e949b
commit 99593ec640
2 changed files with 6 additions and 3 deletions

View File

@@ -55,8 +55,10 @@ mraa_usb_platform_extender(mraa_board_t* board)
syslog(LOG_ERR, "Unknown USB Platform Extender, currently not supported by MRAA");
}
sub_plat->platform_type = platform_type;
board->sub_platform = sub_plat;
if (sub_plat != NULL) {
sub_plat->platform_type = platform_type;
board->sub_platform = sub_plat;
}
return platform_type;
}