Skip to content

Commit

Permalink
V4L/DVB (10957a): cx231xx: Fix compilation breakage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 7, 2009
1 parent cde4362 commit 818fdf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions drivers/media/video/cx231xx/cx231xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/video/cx231xx/cx231xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/video/cx231xx/cx231xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 818fdf3

Please sign in to comment.