diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-08 05:44:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:43:56 -0400 |
commit | 591a0d35a8e9bad1ae2481502ba3b7facb4a0dac (patch) | |
tree | 58a08b323dff2eaa61025e76eb5adb6faee434e2 /drivers | |
parent | caa0d36cc7c5674c9b8dfab060ea6c36c2a8e62f (diff) |
V4L/DVB: tm6000: Allow tm6000 driver compilation
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/Kconfig | 2 | ||||
-rw-r--r-- | drivers/staging/Makefile | 1 | ||||
-rw-r--r-- | drivers/staging/tm6000/Makefile | 3 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 1 | ||||
-rw-r--r-- | drivers/staging/tm6000/tm6000-dvb.c | 7 |
5 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 7696a664f8a5..5589616082e7 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig | |||
@@ -49,6 +49,8 @@ source "drivers/staging/go7007/Kconfig" | |||
49 | 49 | ||
50 | source "drivers/staging/cx25821/Kconfig" | 50 | source "drivers/staging/cx25821/Kconfig" |
51 | 51 | ||
52 | source "drivers/staging/tm6000/Kconfig" | ||
53 | |||
52 | source "drivers/staging/usbip/Kconfig" | 54 | source "drivers/staging/usbip/Kconfig" |
53 | 55 | ||
54 | source "drivers/staging/winbond/Kconfig" | 56 | source "drivers/staging/winbond/Kconfig" |
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index ea2e70e2fed4..ec45d4bb8c11 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile | |||
@@ -7,6 +7,7 @@ obj-$(CONFIG_ET131X) += et131x/ | |||
7 | obj-$(CONFIG_SLICOSS) += slicoss/ | 7 | obj-$(CONFIG_SLICOSS) += slicoss/ |
8 | obj-$(CONFIG_VIDEO_GO7007) += go7007/ | 8 | obj-$(CONFIG_VIDEO_GO7007) += go7007/ |
9 | obj-$(CONFIG_VIDEO_CX25821) += cx25821/ | 9 | obj-$(CONFIG_VIDEO_CX25821) += cx25821/ |
10 | obj-$(CONFIG_VIDEO_TM6000) += tm6000/ | ||
10 | obj-$(CONFIG_USB_IP_COMMON) += usbip/ | 11 | obj-$(CONFIG_USB_IP_COMMON) += usbip/ |
11 | obj-$(CONFIG_W35UND) += winbond/ | 12 | obj-$(CONFIG_W35UND) += winbond/ |
12 | obj-$(CONFIG_PRISM2_USB) += wlan-ng/ | 13 | obj-$(CONFIG_PRISM2_USB) += wlan-ng/ |
diff --git a/drivers/staging/tm6000/Makefile b/drivers/staging/tm6000/Makefile index 25aefe74dddc..f904d5779c81 100644 --- a/drivers/staging/tm6000/Makefile +++ b/drivers/staging/tm6000/Makefile | |||
@@ -13,3 +13,6 @@ obj-$(CONFIG_VIDEO_TM6000) += tm6000.o | |||
13 | obj-$(CONFIG_VIDEO_TM6000_ALSA) += tm6000-alsa.o | 13 | obj-$(CONFIG_VIDEO_TM6000_ALSA) += tm6000-alsa.o |
14 | 14 | ||
15 | EXTRA_CFLAGS = -Idrivers/media/video | 15 | EXTRA_CFLAGS = -Idrivers/media/video |
16 | EXTRA_CFLAGS += -Idrivers/media/common/tuners | ||
17 | EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core | ||
18 | EXTRA_CFLAGS += -Idrivers/media/dvb/frontends | ||
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 7ec13d52d810..bc9ec2c9e202 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/usb.h> | 25 | #include <linux/usb.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/video_decoder.h> | ||
28 | #include "tm6000.h" | 27 | #include "tm6000.h" |
29 | #include "tm6000-regs.h" | 28 | #include "tm6000-regs.h" |
30 | #include <media/v4l2-common.h> | 29 | #include <media/v4l2-common.h> |
diff --git a/drivers/staging/tm6000/tm6000-dvb.c b/drivers/staging/tm6000/tm6000-dvb.c index 97bc2d14878e..e16d55efb4f2 100644 --- a/drivers/staging/tm6000/tm6000-dvb.c +++ b/drivers/staging/tm6000/tm6000-dvb.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
22 | #include <compat.h> | ||
23 | 22 | ||
24 | #include "tm6000.h" | 23 | #include "tm6000.h" |
25 | #include "tm6000-regs.h" | 24 | #include "tm6000-regs.h" |
@@ -72,12 +71,7 @@ static void inline print_err_status (struct tm6000_core *dev, | |||
72 | } | 71 | } |
73 | } | 72 | } |
74 | 73 | ||
75 | |||
76 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) | ||
77 | static void tm6000_urb_received(struct urb *urb, struct pt_regs *ptregs) | ||
78 | #else | ||
79 | static void tm6000_urb_received(struct urb *urb) | 74 | static void tm6000_urb_received(struct urb *urb) |
80 | #endif | ||
81 | { | 75 | { |
82 | int ret; | 76 | int ret; |
83 | struct tm6000_core* dev = urb->context; | 77 | struct tm6000_core* dev = urb->context; |
@@ -226,7 +220,6 @@ int tm6000_dvb_attach_frontend(struct tm6000_core *dev) | |||
226 | .parallel_ts = 1, | 220 | .parallel_ts = 1, |
227 | .if2 = 45700, | 221 | .if2 = 45700, |
228 | .disable_i2c_gate_ctrl = 1, | 222 | .disable_i2c_gate_ctrl = 1, |
229 | .tm6000 = 1, | ||
230 | }; | 223 | }; |
231 | 224 | ||
232 | dvb->frontend = pseudo_zl10353_attach(dev, &config, | 225 | dvb->frontend = pseudo_zl10353_attach(dev, &config, |