From: Ben Skeggs Date: Tue, 10 Aug 2010 00:50:13 +0000 (+1000) Subject: drm/nv50: fix minor thinko from nvc0 changes X-Git-Tag: v3.0~3465^2~4^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56dfc58ea094e7a8607786f4762c65b09cd85738;p=platform%2Fkernel%2Flinux-amlogic.git drm/nv50: fix minor thinko from nvc0 changes Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_i2c.c b/drivers/gpu/drm/nouveau/nouveau_i2c.c index 0bd407c..8461485 100644 --- a/drivers/gpu/drm/nouveau/nouveau_i2c.c +++ b/drivers/gpu/drm/nouveau/nouveau_i2c.c @@ -163,7 +163,7 @@ nouveau_i2c_init(struct drm_device *dev, struct dcb_i2c_entry *entry, int index) if (entry->chan) return -EEXIST; - if (dev_priv->card_type == NV_C0 && entry->read >= NV50_I2C_PORTS) { + if (dev_priv->card_type >= NV_50 && entry->read >= NV50_I2C_PORTS) { NV_ERROR(dev, "unknown i2c port %d\n", entry->read); return -EINVAL; }