summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i2c/ch7006_drv.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-08-06 00:57:08 +0400
committerBen Skeggs <bskeggs@redhat.com>2010-08-09 09:16:23 +0400
commitc93ebb4021ff1fdffe78be89a4bd30bc7cbc75e6 (patch)
treec5869fd94b3891c3f75f923d15b9dc2e554c4d68 /drivers/gpu/drm/i2c/ch7006_drv.c
parent1849719ef86e29def631a473e496507a4e052c06 (diff)
downloadlinux-c93ebb4021ff1fdffe78be89a4bd30bc7cbc75e6.tar.xz
drm/i2c/ch7006: Don't use POWER_LEVEL_FULL_POWER_OFF on early chip versions.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i2c/ch7006_drv.c')
-rw-r--r--drivers/gpu/drm/i2c/ch7006_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i2c/ch7006_drv.c b/drivers/gpu/drm/i2c/ch7006_drv.c
index 833b35f44a77..08792a740f18 100644
--- a/drivers/gpu/drm/i2c/ch7006_drv.c
+++ b/drivers/gpu/drm/i2c/ch7006_drv.c
@@ -470,6 +470,7 @@ static int ch7006_encoder_init(struct i2c_client *client,
priv->hmargin = 50;
priv->vmargin = 50;
priv->last_dpms = -1;
+ priv->chip_version = ch7006_read(client, CH7006_VERSION_ID);
if (ch7006_tv_norm) {
for (i = 0; i < NUM_TV_NORMS; i++) {