]> git.karo-electronics.de Git - karo-tx-linux.git/commit
V4L/DVB (12712): em28xx: properly load ir-kbd-i2c when needed
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 Sep 2009 17:04:41 +0000 (14:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 16:47:34 +0000 (13:47 -0300)
commitac07bb73fe226ae2088f060c63829afddb3f2403
tree6bc41b41535236659b5469ef9fb8261eab8819df
parent7aedd5ec87686c557d48584d69ad880c11a0984d
V4L/DVB (12712): em28xx: properly load ir-kbd-i2c when needed

Currently, the logic to load ir i2c ancillary module is broken. It is
associated to Hauppauge devices with IR flag on their eeprom, no matter
if the device uses i2c or em28xx direct IR support. That's wrong.

Instead, add a flag to the boards that use i2c IR chips and load the
module only for those devices and if ir is not disabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx.h