.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Core driver for the High Speed UART DMA |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
---|
6 | 7 | * |
---|
7 | 8 | * Partially based on the bits found in drivers/tty/serial/mfd.c. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | /* |
---|
.. | .. |
---|
347 | 344 | struct dma_slave_config *config) |
---|
348 | 345 | { |
---|
349 | 346 | struct hsu_dma_chan *hsuc = to_hsu_dma_chan(chan); |
---|
350 | | - |
---|
351 | | - /* Check if chan will be configured for slave transfers */ |
---|
352 | | - if (!is_slave_direction(config->direction)) |
---|
353 | | - return -EINVAL; |
---|
354 | 347 | |
---|
355 | 348 | memcpy(&hsuc->config, config, sizeof(hsuc->config)); |
---|
356 | 349 | |
---|