dmaengine: of_dma: Correct return code for of_dma_request_slave_channel in case ...
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 3 Nov 2015 10:28:10 +0000 (12:28 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 03:33:21 +0000 (09:03 +0530)
commit500404ebcbd074ca11aa0c3fd9a268aa4054fd8b
treef95552b9bac09f02c92b482b96ad4596af1e2f80
parentbf55555baaf80cdf2cc4176fee02545a07a8ff4a
dmaengine: of_dma: Correct return code for of_dma_request_slave_channel in case !CONFIG_OF

of_dma_request_slave_channel should return either pointer for valid
dma_chan or ERR_PTR() error code, NULL is not expected to be returned.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/of_dma.h