summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2012-05-30 15:47:40 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-18 11:25:20 -0300
commitb83f671566f8a3b9796bed7416d25e07866ff408 (patch)
tree63846c29431f46aca28a1701b4d85c82c679bc62 /drivers/media/video
parentbdca5036332311bea183dc628c69e3cb50a9369e (diff)
downloadop-kernel-dev-b83f671566f8a3b9796bed7416d25e07866ff408.zip
op-kernel-dev-b83f671566f8a3b9796bed7416d25e07866ff408.tar.gz
[media] em28xx: Show a warning if the board does not support remote controls
This simply shows a little warning if the board does not have remote control support. This should make it easier for users to see if they have misconfigured their system or if the driver simply does not have rc-support for their card (yet). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/em28xx/em28xx-input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c
index fce5f76..5e30c4f 100644
--- a/drivers/media/video/em28xx/em28xx-input.c
+++ b/drivers/media/video/em28xx/em28xx-input.c
@@ -527,6 +527,8 @@ static int em28xx_ir_init(struct em28xx *dev)
if (dev->board.ir_codes == NULL) {
/* No remote control support */
+ em28xx_warn("Remote control support is not available for "
+ "this card.\n");
return 0;
}
OpenPOWER on IntegriCloud