summaryrefslogtreecommitdiff
path: root/linux-core/intel_i2c.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-09-27 14:21:03 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2007-09-27 14:21:03 +0100
commit2ed12b6b7eee8a1b5b0adf0cd8f3cb8c1bc3ccaf (patch)
tree964fc478e345a330d926857352b1bfdf59d6d375 /linux-core/intel_i2c.c
parent61dfd19de81716aea0eaba90518fcb110b46b8f0 (diff)
Add some more checks to modelist walking for matching
incoming modes to current modelist.
Diffstat (limited to 'linux-core/intel_i2c.c')
-rw-r--r--linux-core/intel_i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/intel_i2c.c b/linux-core/intel_i2c.c
index b512e592..efcbf656 100644
--- a/linux-core/intel_i2c.c
+++ b/linux-core/intel_i2c.c
@@ -140,6 +140,9 @@ struct intel_i2c_chan *intel_i2c_create(struct drm_device *dev, const u32 reg,
chan->reg = reg;
snprintf(chan->adapter.name, I2C_NAME_SIZE, "intel drm %s", name);
chan->adapter.owner = THIS_MODULE;
+#ifndef I2C_HW_B_INTELFB
+#define I2C_HW_B_INTELFB I2C_HW_B_I810
+#endif
chan->adapter.id = I2C_HW_B_INTELFB;
chan->adapter.algo_data = &chan->algo;
chan->adapter.dev.parent = &dev->pdev->dev;