dmaengine: Rework dma_chan_get
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 17 Nov 2014 13:41:58 +0000 (14:41 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 22 Dec 2014 06:58:55 +0000 (12:28 +0530)
commitd2f4f99db3e9ec8b063cf2e45704e2bb95428317
tree9977bcb2e3f8eacfd1f1417a2aa2ced074734661
parentceacbdbf65c4cf48a130db6152c6e03432c85ed1
dmaengine: Rework dma_chan_get

dma_chan_get uses a rather interesting error handling and code path.

Change it to something more usual in the kernel.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c