hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/platform/davinci/vpbe_venc.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2010 Texas Instruments Inc
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135 #include <linux/module.h>
146 #include <linux/mod_devicetable.h>
....@@ -21,11 +13,6 @@
2113 #include <linux/platform_device.h>
2214 #include <linux/videodev2.h>
2315 #include <linux/slab.h>
24
-
25
-#ifdef CONFIG_ARCH_DAVINCI
26
-#include <mach/hardware.h>
27
-#include <mach/mux.h>
28
-#endif
2916
3017 #include <linux/platform_data/i2c-davinci.h>
3118
....@@ -616,7 +603,7 @@
616603
617604 v4l2_subdev_init(&venc->sd, &venc_ops);
618605
619
- strcpy(venc->sd.name, venc_name);
606
+ strscpy(venc->sd.name, venc_name, sizeof(venc->sd.name));
620607 if (v4l2_device_register_subdev(v4l2_dev, &venc->sd) < 0) {
621608 v4l2_err(v4l2_dev,
622609 "vpbe unable to register venc sub device\n");