hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/platform/sti/c8sectpfe/c8sectpfe-dvb.c
....@@ -143,7 +143,7 @@
143143 "%s: stv0367ter_attach failed for NIM card %s\n"
144144 , __func__, dvb_card_str(tsin->dvb_card));
145145 return -ENODEV;
146
- };
146
+ }
147147
148148 /*
149149 * init the demod so that i2c gate_ctrl
....@@ -170,8 +170,9 @@
170170
171171 /* attach tuner */
172172 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)) {
175176 dvb_frontend_detach(*fe);
176177 return -ENODEV;
177178 }
....@@ -203,7 +204,7 @@
203204 "%s: stv6110x_attach failed for NIM card %s\n"
204205 , __func__, dvb_card_str(tsin->dvb_card));
205206 return -ENODEV;
206
- };
207
+ }
207208
208209 stv090x_config.tuner_init = fe2->tuner_init;
209210 stv090x_config.tuner_set_mode = fe2->tuner_set_mode;