forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/saa7146/hexium_orion.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 hexium_orion.c - v4l2 driver for the Hexium Orion 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
....@@ -380,7 +368,7 @@
380368 vv_data.vid_ops.vidioc_enum_input = vidioc_enum_input;
381369 vv_data.vid_ops.vidioc_g_input = vidioc_g_input;
382370 vv_data.vid_ops.vidioc_s_input = vidioc_s_input;
383
- if (0 != saa7146_register_device(&hexium->video_dev, dev, "hexium orion", VFL_TYPE_GRABBER)) {
371
+ if (0 != saa7146_register_device(&hexium->video_dev, dev, "hexium orion", VFL_TYPE_VIDEO)) {
384372 pr_err("cannot register capture v4l2 device. skipping.\n");
385373 return -1;
386374 }