mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
usb: chipidea: udc: fix error path in udc_start()
This patch fixes the error path of udc_start(). Now NULL is used to unset the peripheral with otg_set_peripheral(). Cc: stable <[email protected]> Reviewed-by: Richard Zhao <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c0a48e6c75
commit
c9d1f947a8
1 changed files with 1 additions and 1 deletions
|
|
@ -1748,7 +1748,7 @@ static int udc_start(struct ci13xxx *ci)
|
|||
|
||||
remove_trans:
|
||||
if (!IS_ERR_OR_NULL(ci->transceiver)) {
|
||||
otg_set_peripheral(ci->transceiver->otg, &ci->gadget);
|
||||
otg_set_peripheral(ci->transceiver->otg, NULL);
|
||||
if (ci->global_phy)
|
||||
usb_put_phy(ci->transceiver);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue