| .. | .. |
|---|
| 305 | 305 | kfree(state); |
|---|
| 306 | 306 | return NULL; |
|---|
| 307 | 307 | } |
|---|
| 308 | | -EXPORT_SYMBOL(cx24120_attach); |
|---|
| 308 | +EXPORT_SYMBOL_GPL(cx24120_attach); |
|---|
| 309 | 309 | |
|---|
| 310 | 310 | static int cx24120_test_rom(struct cx24120_state *state) |
|---|
| 311 | 311 | { |
|---|
| .. | .. |
|---|
| 972 | 972 | cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff; |
|---|
| 973 | 973 | cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff; |
|---|
| 974 | 974 | |
|---|
| 975 | | - cx24120_message_send(state, &cmd); |
|---|
| 975 | + ret = cx24120_message_send(state, &cmd); |
|---|
| 976 | + if (ret != 0) |
|---|
| 977 | + return; |
|---|
| 976 | 978 | |
|---|
| 977 | 979 | /* Calculate ber window rates for stat work */ |
|---|
| 978 | 980 | cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate); |
|---|