hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/media/dvb-frontends/cx24120.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 Conexant cx24120/cx24118 - DVBS/S2 Satellite demod/tuner driver
34
....@@ -12,15 +13,6 @@
1213
1314 Cards supported: Technisat Skystar S2
1415
15
- This program is free software; you can redistribute it and/or modify
16
- it under the terms of the GNU General Public License as published by
17
- the Free Software Foundation; either version 2 of the License, or
18
- (at your option) any later version.
19
-
20
- This program is distributed in the hope that it will be useful,
21
- but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- GNU General Public License for more details.
2416 */
2517
2618 #include <linux/slab.h>
....@@ -313,7 +305,7 @@
313305 kfree(state);
314306 return NULL;
315307 }
316
-EXPORT_SYMBOL(cx24120_attach);
308
+EXPORT_SYMBOL_GPL(cx24120_attach);
317309
318310 static int cx24120_test_rom(struct cx24120_state *state)
319311 {
....@@ -980,7 +972,9 @@
980972 cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff;
981973 cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff;
982974
983
- cx24120_message_send(state, &cmd);
975
+ ret = cx24120_message_send(state, &cmd);
976
+ if (ret != 0)
977
+ return;
984978
985979 /* Calculate ber window rates for stat work */
986980 cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate);