]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (10894): ISA radio drivers: improve kernel log message
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 9 Mar 2009 11:11:21 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:13 +0000 (12:43 -0300)
It's much nicer if the log message tells you which io ports are possible,
rather than having to run modinfo or look it up in the source or manual.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-aimslab.c
drivers/media/radio/radio-aztech.c
drivers/media/radio/radio-cadet.c
drivers/media/radio/radio-terratec.c
drivers/media/radio/radio-trust.c
drivers/media/radio/radio-zoltrix.c

index ee204fdc415762c53e8563d9827a88cbf22d3dc4..a99227f7a9da8e05bb549260dfd279ea9bc5852d 100644 (file)
@@ -398,7 +398,7 @@ static int __init rtrack_init(void)
        rt->io = io;
 
        if (rt->io == -1) {
-               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x20f or 0x30f\n");
                return -EINVAL;
        }
 
index 35f6f403f65d4d2c8e7bbd9408e18034899d124e..186f3bae0ecc1102a250a90afd008274456c1817 100644 (file)
@@ -361,7 +361,7 @@ static int __init aztech_init(void)
        az->io = io;
 
        if (az->io == -1) {
-               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x350 or 0x358\n");
                return -EINVAL;
        }
 
index 7741f33ce8738a28f7f1ad9065feb2fd32385915..4627c5a662ee99c23880dfe13bafb36eba2723e1 100644 (file)
@@ -659,7 +659,8 @@ static int __init cadet_init(void)
        /* Else we bail out */
        if (dev->io < 0) {
 #ifdef MODULE
-               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x330, 0x332, 0x334,\n");
+               v4l2_err(v4l2_dev, "0x336, 0x338, 0x33a, 0x33c or 0x33e\n");
 #endif
                goto fail;
        }
index 5a37e0d797bf9e758186f75da0bd03e646df1a84..a6243f738a78c4e65c79d7e6ce6bb47d367e79ae 100644 (file)
@@ -375,7 +375,7 @@ static int __init terratec_init(void)
        strlcpy(v4l2_dev->name, "terratec", sizeof(v4l2_dev->name));
        tt->io = io;
        if (tt->io == -1) {
-               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "you must set an I/O address with io=0x590 or 0x591\n");
                return -EINVAL;
        }
        if (!request_region(tt->io, 2, "terratec")) {
index fe964b45fdf5356cc06f8f8f4f57fc6ed26e3b05..4aa394940e1273b859ef9b9f4dc2a0e726d809fa 100644 (file)
@@ -383,7 +383,7 @@ static int __init trust_init(void)
        mutex_init(&tr->lock);
 
        if (tr->io == -1) {
-               v4l2_err(v4l2_dev, "You must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "You must set an I/O address with io=0x0x350 or 0x358\n");
                return -EINVAL;
        }
        if (!request_region(tr->io, 2, "Trust FM Radio")) {
index 18dbaf1650de33b5b25a12fd3280aea452d838a9..f0ea281ba51b12fee06561b28c6f55fae6b69763 100644 (file)
@@ -413,7 +413,7 @@ static int __init zoltrix_init(void)
        strlcpy(v4l2_dev->name, "zoltrix", sizeof(v4l2_dev->name));
        zol->io = io;
        if (zol->io == -1) {
-               v4l2_err(v4l2_dev, "You must set an I/O address with io=0x???\n");
+               v4l2_err(v4l2_dev, "You must set an I/O address with io=0x20c or 0x30c\n");
                return -EINVAL;
        }
        if (zol->io != 0x20c && zol->io != 0x30c) {