drm/msm/hdmi: don't print error when adding i2c adapter fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Tue, 9 Aug 2016 11:30:29 +0000 (13:30 +0200)
committerRob Clark <robdclark@gmail.com>
Thu, 15 Sep 2016 21:21:12 +0000 (17:21 -0400)
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>
drivers/gpu/drm/msm/hdmi/hdmi_i2c.c

index de9007e72f4e852960be7e078af599792edec6b7..73e20219d431a78c4ec9d3f335c430efbf2c49af 100644 (file)
@@ -243,7 +243,6 @@ void msm_hdmi_i2c_destroy(struct i2c_adapter *i2c)
 
 struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
 {
-       struct drm_device *dev = hdmi->dev;
        struct hdmi_i2c_adapter *hdmi_i2c;
        struct i2c_adapter *i2c = NULL;
        int ret;
@@ -267,10 +266,8 @@ struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
        i2c->algo = &msm_hdmi_i2c_algorithm;
 
        ret = i2c_add_adapter(i2c);
-       if (ret) {
-               dev_err(dev->dev, "failed to register hdmi i2c: %d\n", ret);
+       if (ret)
                goto fail;
-       }
 
        return i2c;