hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/remoteproc/wkup_m3_rproc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI AMx3 Wakeup M3 Remote Processor driver
34 *
....@@ -5,15 +6,6 @@
56 *
67 * Dave Gerlach <d-gerlach@ti.com>
78 * Suman Anna <s-anna@ti.com>
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * version 2 as published by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
179 */
1810
1911 #include <linux/err.h>
....@@ -88,14 +80,14 @@
8880 return 0;
8981 }
9082
91
-static void *wkup_m3_rproc_da_to_va(struct rproc *rproc, u64 da, int len)
83
+static void *wkup_m3_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem)
9284 {
9385 struct wkup_m3_rproc *wkupm3 = rproc->priv;
9486 void *va = NULL;
9587 int i;
9688 u32 offset;
9789
98
- if (len <= 0)
90
+ if (len == 0)
9991 return NULL;
10092
10193 for (i = 0; i < WKUPM3_MEM_MAX; i++) {