summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-11-16 00:40:38 +0300
committerJean Delvare <khali@endymion.delvare>2010-11-16 00:40:38 +0300
commitdfdee5f00cc9ce21b0a7e786039bcfec26fbcb4b (patch)
treeb60683d060290bda19ce2fa868ac57dc70e2cf2a /drivers/video
parentdc6641be0ea8819ef095fdcefc2b695611999a21 (diff)
downloadlinux-dfdee5f00cc9ce21b0a7e786039bcfec26fbcb4b.tar.xz
i2c: Delete unused adapter IDs
Delete unused I2C adapter IDs. Special cases are: * I2C_HW_B_RIVA was still set in driver rivafb, however no other driver is ever looking for this value, so we can safely remove it. * I2C_HW_B_HDPVR is used in staging driver lirc_zilog, however no adapter ID is ever set to this value, so the code in question never runs. As the code additionally expects that I2C_HW_B_HDPVR may not be defined, we can delete it now and let the lirc_zilog driver maintainer rewrite this piece of code. Big thanks for Hans Verkuil for doing all the hard work :) Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Jarod Wilson <jarod@redhat.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/riva/rivafb-i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c
index a0e22ac483a3..167400e2a182 100644
--- a/drivers/video/riva/rivafb-i2c.c
+++ b/drivers/video/riva/rivafb-i2c.c
@@ -94,7 +94,6 @@ static int __devinit riva_setup_i2c_bus(struct riva_i2c_chan *chan,
strcpy(chan->adapter.name, name);
chan->adapter.owner = THIS_MODULE;
- chan->adapter.id = I2C_HW_B_RIVA;
chan->adapter.class = i2c_class;
chan->adapter.algo_data = &chan->algo;
chan->adapter.dev.parent = &chan->par->pdev->dev;