usb: musb: core: call dma_controller_destroy() in the err path
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 19 Jun 2013 15:38:14 +0000 (17:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:53:21 +0000 (13:53 +0300)
commitf3ce4d5b2d8d714407a646c07505c5174afd7574
treebb2889b00ea01263fa9a7ca6533c4bff98cdeba1
parent6904b845e27830ea0dc8d00fada5a3f478924ea3
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>
drivers/usb/musb/musb_core.c