| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Conexant cx24120/cx24118 - DVBS/S2 Satellite demod/tuner driver |
|---|
| 3 | 4 | |
|---|
| .. | .. |
|---|
| 12 | 13 | |
|---|
| 13 | 14 | Cards supported: Technisat Skystar S2 |
|---|
| 14 | 15 | |
|---|
| 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. |
|---|
| 24 | 16 | */ |
|---|
| 25 | 17 | |
|---|
| 26 | 18 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 313 | 305 | kfree(state); |
|---|
| 314 | 306 | return NULL; |
|---|
| 315 | 307 | } |
|---|
| 316 | | -EXPORT_SYMBOL(cx24120_attach); |
|---|
| 308 | +EXPORT_SYMBOL_GPL(cx24120_attach); |
|---|
| 317 | 309 | |
|---|
| 318 | 310 | static int cx24120_test_rom(struct cx24120_state *state) |
|---|
| 319 | 311 | { |
|---|
| .. | .. |
|---|
| 980 | 972 | cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff; |
|---|
| 981 | 973 | cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff; |
|---|
| 982 | 974 | |
|---|
| 983 | | - cx24120_message_send(state, &cmd); |
|---|
| 975 | + ret = cx24120_message_send(state, &cmd); |
|---|
| 976 | + if (ret != 0) |
|---|
| 977 | + return; |
|---|
| 984 | 978 | |
|---|
| 985 | 979 | /* Calculate ber window rates for stat work */ |
|---|
| 986 | 980 | cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate); |
|---|