hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/dma/hsu/hsu.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Core driver for the High Speed UART DMA
34 *
....@@ -5,10 +6,6 @@
56 * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
67 *
78 * 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.
129 */
1310
1411 /*
....@@ -347,10 +344,6 @@
347344 struct dma_slave_config *config)
348345 {
349346 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;
354347
355348 memcpy(&hsuc->config, config, sizeof(hsuc->config));
356349