.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * TI AMx3 Wakeup M3 Remote Processor driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Dave Gerlach <d-gerlach@ti.com> |
---|
7 | 8 | * 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. |
---|
17 | 9 | */ |
---|
18 | 10 | |
---|
19 | 11 | #include <linux/err.h> |
---|
.. | .. |
---|
88 | 80 | return 0; |
---|
89 | 81 | } |
---|
90 | 82 | |
---|
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) |
---|
92 | 84 | { |
---|
93 | 85 | struct wkup_m3_rproc *wkupm3 = rproc->priv; |
---|
94 | 86 | void *va = NULL; |
---|
95 | 87 | int i; |
---|
96 | 88 | u32 offset; |
---|
97 | 89 | |
---|
98 | | - if (len <= 0) |
---|
| 90 | + if (len == 0) |
---|
99 | 91 | return NULL; |
---|
100 | 92 | |
---|
101 | 93 | for (i = 0; i < WKUPM3_MEM_MAX; i++) { |
---|