forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx88/cx88-core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * device driver for Conexant 2388x based TV cards
34 * driver core
....@@ -8,16 +9,6 @@
89 * - Multituner support
910 * - video_ioctl2 conversion
1011 * - PAL/M fixes
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2 of the License, or
15
- * (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
2112 */
2213
2314 #include "cx88.h"
....@@ -40,7 +31,7 @@
4031
4132 MODULE_DESCRIPTION("v4l2 driver module for cx2388x based TV cards");
4233 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
43
-MODULE_LICENSE("GPL");
34
+MODULE_LICENSE("GPL v2");
4435
4536 /* ------------------------------------------------------------------ */
4637
....@@ -1079,8 +1070,7 @@
10791070 mutex_lock(&devlist);
10801071 cx88_ir_fini(core);
10811072 if (core->i2c_rc == 0) {
1082
- if (core->i2c_rtc)
1083
- i2c_unregister_device(core->i2c_rtc);
1073
+ i2c_unregister_device(core->i2c_rtc);
10841074 i2c_del_adapter(&core->i2c_adap);
10851075 }
10861076 list_del(&core->devlist);