]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (9065): saa7134: fix I2C remote controls on saa7134
authorDmitri Belimov <d.belimov@gmail.com>
Mon, 29 Sep 2008 05:25:40 +0000 (02:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:10 +0000 (09:37 -0200)
This is patch for solve this regression. Load ir-kbd-i2c module when remote is i2c type.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-core.c

index 12872c042f3ac086f0231dd4718c1901ec366073..b686bfabbde0defb53a765a8b3bf8978e1f21b0a 100644 (file)
@@ -699,6 +699,10 @@ static int saa7134_hw_enable2(struct saa7134_dev *dev)
                        irq2_mask |= SAA7134_IRQ2_INTE_GPIO18A;
        }
 
+       if (dev->has_remote == SAA7134_REMOTE_I2C) {
+               request_module("ir-kbd-i2c");
+       }
+
        saa_writel(SAA7134_IRQ1, 0);
        saa_writel(SAA7134_IRQ2, irq2_mask);