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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f87fa71e6f
commit
ba3d6f8f10
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user