forked from Minki/linux
media: dvb-frontends: cxd2820r_core: 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>
This commit is contained in:
parent
864919ea03
commit
0a248872e4
@ -632,9 +632,9 @@ static int cxd2820r_probe(struct i2c_client *client,
|
|||||||
* one dummy I2C client in in order to get own I2C client for each
|
* one dummy I2C client in in order to get own I2C client for each
|
||||||
* register bank.
|
* register bank.
|
||||||
*/
|
*/
|
||||||
priv->client[1] = i2c_new_dummy(client->adapter, client->addr | (1 << 1));
|
priv->client[1] = i2c_new_dummy_device(client->adapter, client->addr | (1 << 1));
|
||||||
if (!priv->client[1]) {
|
if (IS_ERR(priv->client[1])) {
|
||||||
ret = -ENODEV;
|
ret = PTR_ERR(priv->client[1]);
|
||||||
dev_err(&client->dev, "I2C registration failed\n");
|
dev_err(&client->dev, "I2C registration failed\n");
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_regmap_0_regmap_exit;
|
goto err_regmap_0_regmap_exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user