]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (10957a): cx231xx: Fix compilation breakage
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 13 Mar 2009 10:41:58 +0000 (07:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:03 +0000 (21:44 -0300)
Only cx231xx-video needs linux/version.h, due to KERNEL_VERSION macro,
that is used by V4L2 API.

This patch moves the KERNEL_VERSION to its proper place and starts with
0,0,1.

There are still much more to be fixed on later patches

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

index a1f6ed645add27950f62fb4c8c862109ee125b44..27cf51b78d6db1c49a4b8e661d499945ec290186 100644 (file)
@@ -964,9 +964,7 @@ static int __init cx231xx_module_init(void)
 {
        int result;
 
-       printk(KERN_INFO DRIVER_NAME " v4l2 driver version %d.%d.%d loaded\n",
-              (CX231XX_VERSION_CODE >> 16) & 0xff,
-              (CX231XX_VERSION_CODE >> 8) & 0xff, CX231XX_VERSION_CODE & 0xff);
+       printk(KERN_INFO DRIVER_NAME " v4l2 driver loaded.\n");
 
        /* register this driver with the USB subsystem */
        result = usb_register(&cx231xx_usb_driver);
index 89cf57c5056a7aed4691dbebd88b1868b7e26f33..47e2da8ae19ae39cfacdcc3ce8569ea6b5d3c3c0 100644 (file)
@@ -44,6 +44,8 @@
 #include "cx231xx.h"
 #include "cx231xx-vbi.h"
 
+#define CX231XX_VERSION_CODE            KERNEL_VERSION(0, 0, 1)
+
 #define DRIVER_AUTHOR   "Srinivasa Deevi <srinivasa.deevi@conexant.com>"
 #define DRIVER_DESC     "Conexant cx231xx based USB video device driver"
 
index d98b36d772bd6b46d43bfcf824742d4c944d6d19..d4fba028db4a551b0c610b34bfddea5e7457d778 100644 (file)
@@ -37,7 +37,6 @@
 #include "cx231xx-pcb-config.h"
 #include "cx231xx-conf-reg.h"
 
-#define CX231XX_VERSION_CODE            KERNEL_VERSION(0, 1, 0)
 #define DRIVER_NAME                     "cx231xx"
 #define PWR_SLEEP_INTERVAL              5