.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * TI OMAP4 ISS V4L2 Driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012, Texas Instruments |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/clk.h> |
---|
.. | .. |
---|
59 | 55 | * readback the same register, in this case the revision register. |
---|
60 | 56 | * |
---|
61 | 57 | * 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 |
---|
63 | 59 | */ |
---|
64 | 60 | static void omap4iss_flush(struct iss_device *iss) |
---|
65 | 61 | { |
---|
.. | .. |
---|
912 | 908 | struct iss_device *iss, |
---|
913 | 909 | enum iss_mem_resources res) |
---|
914 | 910 | { |
---|
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); |
---|
920 | 912 | |
---|
921 | 913 | return PTR_ERR_OR_ZERO(iss->regs[res]); |
---|
922 | 914 | } |
---|
.. | .. |
---|
989 | 981 | int ret; |
---|
990 | 982 | |
---|
991 | 983 | iss->media_dev.dev = iss->dev; |
---|
992 | | - strlcpy(iss->media_dev.model, "TI OMAP4 ISS", |
---|
| 984 | + strscpy(iss->media_dev.model, "TI OMAP4 ISS", |
---|
993 | 985 | sizeof(iss->media_dev.model)); |
---|
994 | 986 | iss->media_dev.hw_revision = iss->revision; |
---|
995 | 987 | iss->media_dev.ops = &iss_media_ops; |
---|
.. | .. |
---|
1282 | 1274 | /* Interrupt */ |
---|
1283 | 1275 | ret = platform_get_irq(pdev, 0); |
---|
1284 | 1276 | if (ret <= 0) { |
---|
1285 | | - dev_err(iss->dev, "No IRQ resource\n"); |
---|
1286 | 1277 | ret = -ENODEV; |
---|
1287 | 1278 | goto error_iss; |
---|
1288 | 1279 | } |
---|