Commit bf2993c1 authored by Wolfram Sang's avatar Wolfram Sang Committed by Sam Ravnborg

drm/i2c/tda998x: convert to use i2c_new_client_device()

Move away from the deprecated API and return the shiny new ERRPTR where
useful.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200326211005.13301-5-wsa+renesas@sang-engineering.com
parent d1fe2e78
...@@ -1949,9 +1949,9 @@ static int tda998x_create(struct device *dev) ...@@ -1949,9 +1949,9 @@ static int tda998x_create(struct device *dev)
cec_info.platform_data = &priv->cec_glue; cec_info.platform_data = &priv->cec_glue;
cec_info.irq = client->irq; cec_info.irq = client->irq;
priv->cec = i2c_new_device(client->adapter, &cec_info); priv->cec = i2c_new_client_device(client->adapter, &cec_info);
if (!priv->cec) { if (IS_ERR(priv->cec)) {
ret = -ENODEV; ret = PTR_ERR(priv->cec);
goto fail; goto fail;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment