diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-26 14:10:51 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 10:17:45 +0100 |
commit | 79c7d849777bc24d995371a066ded2ab2b359a18 (patch) | |
tree | 48084f9447fb74d14e72449402aa35f928821c3b /drivers | |
parent | usb: gadget: udc-core: introduce usb_add_gadget_udc_release() (diff) | |
download | linux-79c7d849777bc24d995371a066ded2ab2b359a18.tar.xz linux-79c7d849777bc24d995371a066ded2ab2b359a18.zip |
usb: chipidea: udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index e303fd4b1b93..9bddf3f633f1 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1689,16 +1689,6 @@ static irqreturn_t udc_irq(struct ci13xxx *ci) } /** - * udc_release: driver release function - * @dev: device - * - * Currently does nothing - */ -static void udc_release(struct device *dev) -{ -} - -/** * udc_start: initialize gadget role * @ci: chipidea controller */ @@ -1717,8 +1707,6 @@ static int udc_start(struct ci13xxx *ci) INIT_LIST_HEAD(&ci->gadget.ep_list); - ci->gadget.dev.release = udc_release; - /* alloc resources */ ci->qh_pool = dma_pool_create("ci13xxx_qh", dev, sizeof(struct ci13xxx_qh), |