mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
drm/msm/hdmi: don't print error when adding i2c adapter fails
The core will do this for us now. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
14edbde1a6
commit
0e54543c49
1 changed files with 1 additions and 4 deletions
|
@ -243,7 +243,6 @@ void msm_hdmi_i2c_destroy(struct i2c_adapter *i2c)
|
||||||
|
|
||||||
struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
|
struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
|
||||||
{
|
{
|
||||||
struct drm_device *dev = hdmi->dev;
|
|
||||||
struct hdmi_i2c_adapter *hdmi_i2c;
|
struct hdmi_i2c_adapter *hdmi_i2c;
|
||||||
struct i2c_adapter *i2c = NULL;
|
struct i2c_adapter *i2c = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -267,10 +266,8 @@ struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
|
||||||
i2c->algo = &msm_hdmi_i2c_algorithm;
|
i2c->algo = &msm_hdmi_i2c_algorithm;
|
||||||
|
|
||||||
ret = i2c_add_adapter(i2c);
|
ret = i2c_add_adapter(i2c);
|
||||||
if (ret) {
|
if (ret)
|
||||||
dev_err(dev->dev, "failed to register hdmi i2c: %d\n", ret);
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
|
||||||
|
|
||||||
return i2c;
|
return i2c;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue