]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: samsung: Simplify DMA engine initialization code
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 16 Dec 2016 09:56:53 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:51:24 +0000 (11:51 +0100)
commitba3d6f8f10c3897e0edde3069beb0bfbe81783a6
tree9b4c9c8f512729283b250ea0cdc20bb2a4e50448
parentf87fa71e6fb0fa7bade9c3f3bb3f49325e76a90a
serial: samsung: Simplify DMA engine initialization code

dma_request_slave_channel_compat() requires filter function and mask, which
are not needed on device tree based platforms, so simplify the code by
calling the more appropriate dma_request_chan() function. This additionally
gives us proper error handling, because the new function returns error
codes instead of NULL on failure.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h