forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/saa7146/hexium_gemini.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 hexium_gemini.c - v4l2 driver for Hexium Gemini frame grabber cards
34
....@@ -6,19 +7,6 @@
67
78 Copyright (C) 2003 Michael Hunold <michael@mihu.de>
89
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.
18
-
19
- You should have received a copy of the GNU General Public License
20
- along with this program; if not, write to the Free Software
21
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2210 */
2311
2412 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -306,7 +294,7 @@
306294 vv_data.vid_ops.vidioc_enum_input = vidioc_enum_input;
307295 vv_data.vid_ops.vidioc_g_input = vidioc_g_input;
308296 vv_data.vid_ops.vidioc_s_input = vidioc_s_input;
309
- ret = saa7146_register_device(&hexium->video_dev, dev, "hexium gemini", VFL_TYPE_GRABBER);
297
+ ret = saa7146_register_device(&hexium->video_dev, dev, "hexium gemini", VFL_TYPE_VIDEO);
310298 if (ret < 0) {
311299 pr_err("cannot register capture v4l2 device. skipping.\n");
312300 saa7146_vv_release(dev);