forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx18/cx18-driver.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * cx18 driver initialization and card probing
34 *
....@@ -5,16 +6,6 @@
56 *
67 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
78 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
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 as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
189 */
1910
2011 #include "cx18-driver.h"
....@@ -328,7 +319,7 @@
328319 if (!c)
329320 return;
330321
331
- strlcpy(c->name, "cx18 tveeprom tmp", sizeof(c->name));
322
+ strscpy(c->name, "cx18 tveeprom tmp", sizeof(c->name));
332323 c->adapter = &cx->i2c_adap[0];
333324 c->addr = 0xa0 >> 1;
334325
....@@ -685,7 +676,7 @@
685676 cx->pci_dev->subsystem_device);
686677 CX18_ERR("Defaulting to %s card\n", cx->card->name);
687678 CX18_ERR("Please mail the vendor/device and subsystem vendor/device IDs and what kind of\n");
688
- CX18_ERR("card you have to the ivtv-devel mailinglist (www.ivtvdriver.org)\n");
679
+ CX18_ERR("card you have to the linux-media mailinglist (www.linuxtv.org)\n");
689680 CX18_ERR("Prefix your subject line with [UNKNOWN CX18 CARD].\n");
690681 }
691682 cx->v4l2_cap = cx->card->v4l2_capabilities;
....@@ -947,7 +938,7 @@
947938 /* map io memory */
948939 CX18_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n",
949940 (u64)cx->base_addr + CX18_MEM_OFFSET, CX18_MEM_SIZE);
950
- cx->enc_mem = ioremap_nocache(cx->base_addr + CX18_MEM_OFFSET,
941
+ cx->enc_mem = ioremap(cx->base_addr + CX18_MEM_OFFSET,
951942 CX18_MEM_SIZE);
952943 if (!cx->enc_mem) {
953944 CX18_ERR("ioremap failed. Can't get a window into CX23418 memory and register space\n");