]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: core: Call dma_controller_destroy() in error path only once.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 16 Oct 2013 10:50:07 +0000 (12:50 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Oct 2013 16:31:51 +0000 (11:31 -0500)
commit77173ec0b3d3c6ade4d4a7b42e44e2d96dee47e2
tree67db34c0f82fcfe41f433ffc34f7f51d4015b36b
parent4bce4cc43cd586bb030b53e9958cd2445a996b94
usb: musb: core: Call dma_controller_destroy() in error path only once.

In commit 28de19d ("usb: musb: core: call dma_controller_destroy() in the err path")
I erroneously assumed that the dma controller is not removed in the
error patch. This was wrong because it happens later via musb_free().
That means the original commit can be reverted because it is wrong or we
do this, so it is more obvious.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c