V4L/DVB (11846): ir-kbd-i2c: Don't assume all IR receivers are supported
authorJean Delvare <khali@linux-fr.org>
Wed, 13 May 2009 19:50:11 +0000 (16:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:11 +0000 (18:21 -0300)
commit9a4cc5ac991d3b697db4f9e5015a758621a95009
tree087883d5290f5e2dcdd2bda34de4e64015466135
parent4d7a2d6721a6380d4ffc26d81d2c8232fd0d2dfc
V4L/DVB (11846): ir-kbd-i2c: Don't assume all IR receivers are supported

The code in ir_probe makes the dangerous assumption that all IR
receivers are supported by the driver. The new i2c model makes it
possible for bridge drivers to instantiate IR devices before they are
supported, therefore the ir-kbd-i2c drivers must be made more robust
to not spam the logs or even crash on unsupported IR devices. Simply,
the driver will not bind to the unsupported devices.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ir-kbd-i2c.c