acpi-dma: convert to return error code when asked for channel
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Feb 2014 11:25:40 +0000 (13:25 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 11 Feb 2014 18:00:50 +0000 (23:30 +0530)
commit0f6a928d035b82c0b3aa387d510a73f3e6dbf8e3
tree7be99bf9737bf54e3729d33369898b72314334da
parent8f01258385be3225331d7edd20de905df433aac4
acpi-dma: convert to return error code when asked for channel

Currently acpi_dma_request_slave_chan_by_index() and
acpi_dma_request_slave_chan_by_name() return only requested channel or NULL.
This patch converts them to return appropriate error code instead of NULL in
case of unsuccessfull request.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/acpi-dma.c
drivers/dma/dmaengine.c
include/linux/acpi_dma.h