hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/staging/media/omap4iss/iss.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * TI OMAP4 ISS V4L2 Driver
34 *
45 * Copyright (C) 2012, Texas Instruments
56 *
67 * Author: Sergio Aguirre <sergio.a.aguirre@gmail.com>
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 published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 */
139
1410 #include <linux/clk.h>
....@@ -59,7 +55,7 @@
5955 * readback the same register, in this case the revision register.
6056 *
6157 * See this link for reference:
62
- * http://www.mail-archive.com/linux-omap@vger.kernel.org/msg08149.html
58
+ * https://www.mail-archive.com/linux-omap@vger.kernel.org/msg08149.html
6359 */
6460 static void omap4iss_flush(struct iss_device *iss)
6561 {
....@@ -912,11 +908,7 @@
912908 struct iss_device *iss,
913909 enum iss_mem_resources res)
914910 {
915
- struct resource *mem;
916
-
917
- mem = platform_get_resource(pdev, IORESOURCE_MEM, res);
918
-
919
- iss->regs[res] = devm_ioremap_resource(iss->dev, mem);
911
+ iss->regs[res] = devm_platform_ioremap_resource(pdev, res);
920912
921913 return PTR_ERR_OR_ZERO(iss->regs[res]);
922914 }
....@@ -989,7 +981,7 @@
989981 int ret;
990982
991983 iss->media_dev.dev = iss->dev;
992
- strlcpy(iss->media_dev.model, "TI OMAP4 ISS",
984
+ strscpy(iss->media_dev.model, "TI OMAP4 ISS",
993985 sizeof(iss->media_dev.model));
994986 iss->media_dev.hw_revision = iss->revision;
995987 iss->media_dev.ops = &iss_media_ops;
....@@ -1282,7 +1274,6 @@
12821274 /* Interrupt */
12831275 ret = platform_get_irq(pdev, 0);
12841276 if (ret <= 0) {
1285
- dev_err(iss->dev, "No IRQ resource\n");
12861277 ret = -ENODEV;
12871278 goto error_iss;
12881279 }