aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-02-07 14:13:23 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-02-14 15:11:12 -0500
commit5e7fe2fef4347d7a09bb15588d8bbe3cb83b6ed4 (patch)
tree49af239a032acec23e5271a21a6b09ea53e59bd9 /drivers
parent2470feccbf030652380c2d73304576137b0fb12e (diff)
drm/i2c: tda998x: always use the same device for all kernel messages
Rather than using a mixture of the parent DRM device and the component device for messages from the driver, consistently use the component device for all messages. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index d0f3a4cbb866..48af5cac1902 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -1044,7 +1044,7 @@ read_edid_block(struct drm_encoder *encoder, uint8_t *buf, int blk)
1044 !priv->wq_edid_wait, 1044 !priv->wq_edid_wait,
1045 msecs_to_jiffies(100)); 1045 msecs_to_jiffies(100));
1046 if (i < 0) { 1046 if (i < 0) {
1047 dev_err(encoder->dev->dev, "read edid wait err %d\n", i); 1047 dev_err(&priv->hdmi->dev, "read edid wait err %d\n", i);
1048 return i; 1048 return i;
1049 } 1049 }
1050 } else { 1050 } else {
@@ -1059,14 +1059,14 @@ read_edid_block(struct drm_encoder *encoder, uint8_t *buf, int blk)
1059 } 1059 }
1060 1060
1061 if (i == 0) { 1061 if (i == 0) {
1062 dev_err(encoder->dev->dev, "read edid timeout\n"); 1062 dev_err(&priv->hdmi->dev, "read edid timeout\n");
1063 return -ETIMEDOUT; 1063 return -ETIMEDOUT;
1064 } 1064 }
1065 1065
1066 ret = reg_read_range(priv, REG_EDID_DATA_0, buf, EDID_LENGTH); 1066 ret = reg_read_range(priv, REG_EDID_DATA_0, buf, EDID_LENGTH);
1067 if (ret != EDID_LENGTH) { 1067 if (ret != EDID_LENGTH) {
1068 dev_err(encoder->dev->dev, "failed to read edid block %d: %d\n", 1068 dev_err(&priv->hdmi->dev, "failed to read edid block %d: %d\n",
1069 blk, ret); 1069 blk, ret);
1070 return ret; 1070 return ret;
1071 } 1071 }
1072 1072
@@ -1132,7 +1132,7 @@ done:
1132fail: 1132fail:
1133 if (priv->rev == TDA19988) 1133 if (priv->rev == TDA19988)
1134 reg_set(priv, REG_TX4, TX4_PD_RAM); 1134 reg_set(priv, REG_TX4, TX4_PD_RAM);
1135 dev_warn(encoder->dev->dev, "failed to read EDID\n"); 1135 dev_warn(&priv->hdmi->dev, "failed to read EDID\n");
1136 kfree(block); 1136 kfree(block);
1137 return NULL; 1137 return NULL;
1138} 1138}