diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-02-19 00:41:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-24 20:07:52 -0500 |
commit | c859aa65a7ec40c02f435f14fa71de2a87c64513 (patch) | |
tree | e3537338526d1b40612cf0434e7ec87553b869e4 /drivers/usb/chipidea/udc.c | |
parent | 3c701651c8c5f35e846512070cdbf2f5980db62c (diff) |
usb: chipidea: refine PHY operation
- Delete global_phy due to we can get the phy from phy layer now
- using devm_usb_get_phy to instead of usb_get_phy
- delete the otg_set_peripheral, which should be handled by otg layer
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 4ab2cb62dfce..0a61c6688bc1 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c | |||
@@ -1837,12 +1837,6 @@ void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) | |||
1837 | 1837 | ||
1838 | dma_pool_destroy(ci->td_pool); | 1838 | dma_pool_destroy(ci->td_pool); |
1839 | dma_pool_destroy(ci->qh_pool); | 1839 | dma_pool_destroy(ci->qh_pool); |
1840 | |||
1841 | if (ci->transceiver) { | ||
1842 | otg_set_peripheral(ci->transceiver->otg, NULL); | ||
1843 | if (ci->global_phy) | ||
1844 | usb_put_phy(ci->transceiver); | ||
1845 | } | ||
1846 | } | 1840 | } |
1847 | 1841 | ||
1848 | static int udc_id_switch_for_device(struct ci_hdrc *ci) | 1842 | static int udc_id_switch_for_device(struct ci_hdrc *ci) |