diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-07-22 19:25:56 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-13 16:44:04 +0200 |
commit | 0a6ed11f9884d74ab7333a921dafd35a0de10aac (patch) | |
tree | acc0f89e6c82cee617d2be8e0fd32e27ec8f7102 /drivers/media/dvb-frontends/mn88443x.c | |
parent | media: dvb-frontends: cxd2820r_core: convert to i2c_new_dummy_device (diff) | |
download | linux-0a6ed11f9884d74ab7333a921dafd35a0de10aac.tar.xz linux-0a6ed11f9884d74ab7333a921dafd35a0de10aac.zip |
media: dvb-frontends: mn88443x: convert to i2c_new_dummy_device
Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an
ERRPTR which we use in error handling.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/mn88443x.c')
-rw-r--r-- | drivers/media/dvb-frontends/mn88443x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/mn88443x.c b/drivers/media/dvb-frontends/mn88443x.c index 9ec1aeef03d5..e4528784f847 100644 --- a/drivers/media/dvb-frontends/mn88443x.c +++ b/drivers/media/dvb-frontends/mn88443x.c @@ -722,9 +722,9 @@ static int mn88443x_probe(struct i2c_client *client, * Chip has two I2C addresses for each satellite/terrestrial system. * ISDB-T uses address ISDB-S + 4, so we register a dummy client. */ - chip->client_t = i2c_new_dummy(client->adapter, client->addr + 4); - if (!chip->client_t) - return -ENODEV; + chip->client_t = i2c_new_dummy_device(client->adapter, client->addr + 4); + if (IS_ERR(chip->client_t)) + return PTR_ERR(chip->client_t); chip->regmap_t = devm_regmap_init_i2c(chip->client_t, ®map_config); if (IS_ERR(chip->regmap_t)) { |