| .. | .. |
|---|
| 143 | 143 | "%s: stv0367ter_attach failed for NIM card %s\n" |
|---|
| 144 | 144 | , __func__, dvb_card_str(tsin->dvb_card)); |
|---|
| 145 | 145 | return -ENODEV; |
|---|
| 146 | | - }; |
|---|
| 146 | + } |
|---|
| 147 | 147 | |
|---|
| 148 | 148 | /* |
|---|
| 149 | 149 | * init the demod so that i2c gate_ctrl |
|---|
| .. | .. |
|---|
| 170 | 170 | |
|---|
| 171 | 171 | /* attach tuner */ |
|---|
| 172 | 172 | request_module("tda18212"); |
|---|
| 173 | | - client = i2c_new_device(tsin->i2c_adapter, &tda18212_info); |
|---|
| 174 | | - if (!client || !client->dev.driver) { |
|---|
| 173 | + client = i2c_new_client_device(tsin->i2c_adapter, |
|---|
| 174 | + &tda18212_info); |
|---|
| 175 | + if (!i2c_client_has_driver(client)) { |
|---|
| 175 | 176 | dvb_frontend_detach(*fe); |
|---|
| 176 | 177 | return -ENODEV; |
|---|
| 177 | 178 | } |
|---|
| .. | .. |
|---|
| 203 | 204 | "%s: stv6110x_attach failed for NIM card %s\n" |
|---|
| 204 | 205 | , __func__, dvb_card_str(tsin->dvb_card)); |
|---|
| 205 | 206 | return -ENODEV; |
|---|
| 206 | | - }; |
|---|
| 207 | + } |
|---|
| 207 | 208 | |
|---|
| 208 | 209 | stv090x_config.tuner_init = fe2->tuner_init; |
|---|
| 209 | 210 | stv090x_config.tuner_set_mode = fe2->tuner_set_mode; |
|---|