hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/dvb-frontends/mn88443x.c
....@@ -731,9 +731,9 @@
731731 * Chip has two I2C addresses for each satellite/terrestrial system.
732732 * ISDB-T uses address ISDB-S + 4, so we register a dummy client.
733733 */
734
- chip->client_t = i2c_new_dummy(client->adapter, client->addr + 4);
735
- if (!chip->client_t)
736
- return -ENODEV;
734
+ chip->client_t = i2c_new_dummy_device(client->adapter, client->addr + 4);
735
+ if (IS_ERR(chip->client_t))
736
+ return PTR_ERR(chip->client_t);
737737
738738 chip->regmap_t = devm_regmap_init_i2c(chip->client_t, &regmap_config);
739739 if (IS_ERR(chip->regmap_t)) {