summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMartin Blumenstingl2012-05-30 20:47:40 +0200
committerMauro Carvalho Chehab2012-06-18 16:25:20 +0200
commitb83f671566f8a3b9796bed7416d25e07866ff408 (patch)
tree63846c29431f46aca28a1701b4d85c82c679bc62 /drivers/media
parent[media] em28xx: Add remote control support for Terratec's Cinergy HTC Stick HD (diff)
downloadkernel-qcow2-linux-b83f671566f8a3b9796bed7416d25e07866ff408.tar.gz
kernel-qcow2-linux-b83f671566f8a3b9796bed7416d25e07866ff408.tar.xz
kernel-qcow2-linux-b83f671566f8a3b9796bed7416d25e07866ff408.zip
[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')
-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 fce5f7680c99..5e30c4f3f248 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;
}