]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02861af910f2d3f3d8db2134ff928d6f267392f1
tree7be99bf9737bf54e3729d33369898b72314334da
parent8b7a201a0ecd26050ed2aa43e65c3316b7dbd71f
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