usb: gadget: android: Set usb_core_id if exists
Read usb_core_id from platfrom data. Change-Id: I360bc064c173214c3e1381dac47eec10f3285819 Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
21d48165d0
commit
b32c19290c
@@ -1812,6 +1812,9 @@ static int __devinit android_probe(struct platform_device *pdev)
|
||||
goto err_dev;
|
||||
}
|
||||
|
||||
if (pdata)
|
||||
composite_driver.usb_core_id = pdata->usb_core_id;
|
||||
|
||||
ret = usb_composite_probe(&android_usb_driver, android_bind);
|
||||
if (ret) {
|
||||
pr_err("%s(): Failed to register android "
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
struct android_usb_platform_data {
|
||||
int (*update_pid_and_serial_num)(uint32_t, const char *);
|
||||
u32 swfi_latency;
|
||||
u8 usb_core_id;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_USB_ANDROID_H */
|
||||
|
||||
Reference in New Issue
Block a user