diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-12-16 10:56:53 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 11:51:24 +0100 |
commit | ba3d6f8f10c3897e0edde3069beb0bfbe81783a6 (patch) | |
tree | 9b4c9c8f512729283b250ea0cdc20bb2a4e50448 /drivers/tty/serial/samsung.h | |
parent | f87fa71e6fb0fa7bade9c3f3bb3f49325e76a90a (diff) | |
download | linux-ba3d6f8f10c3897e0edde3069beb0bfbe81783a6.tar.bz2 |
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>
Diffstat (limited to 'drivers/tty/serial/samsung.h')
-rw-r--r-- | drivers/tty/serial/samsung.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h index a04acef1cb20..965199b6c16f 100644 --- a/drivers/tty/serial/samsung.h +++ b/drivers/tty/serial/samsung.h @@ -44,10 +44,6 @@ struct s3c24xx_serial_drv_data { }; struct s3c24xx_uart_dma { - dma_filter_fn fn; - void *rx_param; - void *tx_param; - unsigned int rx_chan_id; unsigned int tx_chan_id; |