drm/bridge: Remove extra device acquisition method of i2c client in lt9611 driver
We have got the device of i2c client in probe function. So we should remove extra device acquisition method of i2c client. Signed-off-by: Zhiming Liu <lzmlzmhh@gmail.com> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20220117154150.5145-1-lzmlzmhh@gmail.com Reviewed-by: Robert Foss <robert.foss@linaro.org>
This commit is contained in:
@@ -1090,7 +1090,7 @@ static int lt9611_probe(struct i2c_client *client,
|
|||||||
if (!lt9611)
|
if (!lt9611)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
lt9611->dev = &client->dev;
|
lt9611->dev = dev;
|
||||||
lt9611->client = client;
|
lt9611->client = client;
|
||||||
lt9611->sleep = false;
|
lt9611->sleep = false;
|
||||||
|
|
||||||
@@ -1100,7 +1100,7 @@ static int lt9611_probe(struct i2c_client *client,
|
|||||||
return PTR_ERR(lt9611->regmap);
|
return PTR_ERR(lt9611->regmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = lt9611_parse_dt(&client->dev, lt9611);
|
ret = lt9611_parse_dt(dev, lt9611);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to parse device tree\n");
|
dev_err(dev, "failed to parse device tree\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -860,7 +860,7 @@ static int lt9611uxc_probe(struct i2c_client *client,
|
|||||||
if (!lt9611uxc)
|
if (!lt9611uxc)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
lt9611uxc->dev = &client->dev;
|
lt9611uxc->dev = dev;
|
||||||
lt9611uxc->client = client;
|
lt9611uxc->client = client;
|
||||||
mutex_init(<9611uxc->ocm_lock);
|
mutex_init(<9611uxc->ocm_lock);
|
||||||
|
|
||||||
@@ -870,7 +870,7 @@ static int lt9611uxc_probe(struct i2c_client *client,
|
|||||||
return PTR_ERR(lt9611uxc->regmap);
|
return PTR_ERR(lt9611uxc->regmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = lt9611uxc_parse_dt(&client->dev, lt9611uxc);
|
ret = lt9611uxc_parse_dt(dev, lt9611uxc);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to parse device tree\n");
|
dev_err(dev, "failed to parse device tree\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user