summaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_core.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-06-19 19:38:14 +0400
committerFelipe Balbi <balbi@ti.com>2013-07-29 14:53:21 +0400
commitf3ce4d5b2d8d714407a646c07505c5174afd7574 (patch)
treebb2889b00ea01263fa9a7ca6533c4bff98cdeba1 /drivers/usb/musb/musb_core.c
parent6904b845e27830ea0dc8d00fada5a3f478924ea3 (diff)
downloadlinux-f3ce4d5b2d8d714407a646c07505c5174afd7574.tar.xz
usb: musb: core: call dma_controller_destroy() in the err path
The cleanup in the error is missing the dma controller. The structure is allocated at runtime and ux500 allocates even a little more than just this struct. So cleanup! Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r--drivers/usb/musb/musb_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index b33bed5b0dc8..9b774e72c0e4 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1933,6 +1933,8 @@ fail4:
musb_gadget_cleanup(musb);
fail3:
+ if (musb->dma_controller)
+ dma_controller_destroy(musb->dma_controller);
pm_runtime_put_sync(musb->controller);
fail2: