forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/intel/skylake/skl-sst-cldma.c
....@@ -1,21 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * skl-sst-cldma.c - Code Loader DMA handler
34 *
45 * Copyright (C) 2015, Intel Corporation.
56 * Author: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
67 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as version 2, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
168 */
179
1810 #include <linux/device.h>
11
+#include <linux/io.h>
1912 #include <linux/mm.h>
2013 #include <linux/delay.h>
2114 #include "../common/sst-dsp.h"
....@@ -252,7 +245,7 @@
252245 skl_cldma_copy_to_buf(struct sst_dsp *ctx, const void *bin,
253246 u32 total_size, bool wait)
254247 {
255
- int ret = 0;
248
+ int ret;
256249 bool start = true;
257250 unsigned int excess_bytes;
258251 u32 size;