.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | DVB device driver for cx231xx |
---|
3 | 4 | |
---|
4 | 5 | Copyright (C) 2008 <srinivasa.deevi at conexant dot com> |
---|
5 | 6 | Based on em28xx driver |
---|
6 | 7 | |
---|
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. |
---|
20 | 8 | */ |
---|
21 | 9 | |
---|
22 | 10 | #include "cx231xx.h" |
---|
.. | .. |
---|
159 | 147 | .small_i2c = TDA18271_03_BYTE_CHUNK_INIT, |
---|
160 | 148 | }; |
---|
161 | 149 | |
---|
162 | | -static struct lgdt3306a_config hauppauge_955q_lgdt3306a_config = { |
---|
| 150 | +static const struct lgdt3306a_config hauppauge_955q_lgdt3306a_config = { |
---|
163 | 151 | .qam_if_khz = 4000, |
---|
164 | 152 | .vsb_if_khz = 3250, |
---|
165 | 153 | .spectral_inversion = 1, |
---|
.. | .. |
---|
1159 | 1147 | |
---|
1160 | 1148 | if (dev->dvb) { |
---|
1161 | 1149 | unregister_dvb(dev->dvb); |
---|
| 1150 | + kfree(dev->dvb); |
---|
1162 | 1151 | dev->dvb = NULL; |
---|
1163 | 1152 | } |
---|
1164 | 1153 | |
---|