hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/remoteproc/keystone_remoteproc.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI Keystone DSP remoteproc driver
34 *
45 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * version 2 as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
146 */
157
168 #include <linux/module.h>
....@@ -254,7 +246,7 @@
254246 * can be used either by the remoteproc core for loading (when using kernel
255247 * remoteproc loader), or by any rpmsg bus drivers.
256248 */
257
-static void *keystone_rproc_da_to_va(struct rproc *rproc, u64 da, int len)
249
+static void *keystone_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem)
258250 {
259251 struct keystone_rproc *ksproc = rproc->priv;
260252 void __iomem *va = NULL;
....@@ -263,7 +255,7 @@
263255 size_t size;
264256 int i;
265257
266
- if (len <= 0)
258
+ if (len == 0)
267259 return NULL;
268260
269261 for (i = 0; i < ksproc->num_mems; i++) {
....@@ -432,16 +424,12 @@
432424 ksproc->irq_ring = platform_get_irq_byname(pdev, "vring");
433425 if (ksproc->irq_ring < 0) {
434426 ret = ksproc->irq_ring;
435
- dev_err(dev, "failed to get vring interrupt, status = %d\n",
436
- ret);
437427 goto disable_clk;
438428 }
439429
440430 ksproc->irq_fault = platform_get_irq_byname(pdev, "exception");
441431 if (ksproc->irq_fault < 0) {
442432 ret = ksproc->irq_fault;
443
- dev_err(dev, "failed to get exception interrupt, status = %d\n",
444
- ret);
445433 goto disable_clk;
446434 }
447435