forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
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)) {
....@@ -800,7 +800,7 @@
800800 static struct i2c_driver mn88443x_driver = {
801801 .driver = {
802802 .name = "mn88443x",
803
- .of_match_table = of_match_ptr(mn88443x_of_match),
803
+ .of_match_table = mn88443x_of_match,
804804 },
805805 .probe = mn88443x_probe,
806806 .remove = mn88443x_remove,