hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/usb/cx231xx/cx231xx-dvb.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 DVB device driver for cx231xx
34
45 Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
56 Based on em28xx driver
67
7
- This program is free software; you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation; either version 2 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program; if not, write to the Free Software
19
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
208 */
219
2210 #include "cx231xx.h"
....@@ -159,7 +147,7 @@
159147 .small_i2c = TDA18271_03_BYTE_CHUNK_INIT,
160148 };
161149
162
-static struct lgdt3306a_config hauppauge_955q_lgdt3306a_config = {
150
+static const struct lgdt3306a_config hauppauge_955q_lgdt3306a_config = {
163151 .qam_if_khz = 4000,
164152 .vsb_if_khz = 3250,
165153 .spectral_inversion = 1,
....@@ -1159,6 +1147,7 @@
11591147
11601148 if (dev->dvb) {
11611149 unregister_dvb(dev->dvb);
1150
+ kfree(dev->dvb);
11621151 dev->dvb = NULL;
11631152 }
11641153