diff options
author | Olaf Hering <olh@suse.de> | 2005-09-09 16:02:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:35 -0400 |
commit | 34f7373aaec80564cc87b7829e4e2a0e3c20c4b7 (patch) | |
tree | 35bec695bc46357aa59b4efe5a0613008f10a836 /drivers/media/dvb | |
parent | a8d995c99ef56a3dbcdbe291bb71658bf00e9ad6 (diff) |
[PATCH] dvb: remove version.h dependencies
Remove all #include <linux/version.h> and all references to LINUX_VERSION_CODE
and KERNEL_VERSION. Based on patch by Olaf Hering.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/cinergyT2/cinergyT2.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_net.c | 5 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mb.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/ttusb-dec/ttusb_dec.c | 1 |
5 files changed, 0 insertions, 9 deletions
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c index 9ea5747b1211..c52e9d5c3d96 100644 --- a/drivers/media/dvb/cinergyT2/cinergyT2.c +++ b/drivers/media/dvb/cinergyT2/cinergyT2.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/config.h> | 25 | #include <linux/config.h> |
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/version.h> | ||
29 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
30 | #include <linux/usb.h> | 29 | #include <linux/usb.h> |
31 | #include <linux/pci.h> | 30 | #include <linux/pci.h> |
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c index 6a968c346a36..33a357c48a19 100644 --- a/drivers/media/dvb/dvb-core/dvb_net.c +++ b/drivers/media/dvb/dvb-core/dvb_net.c | |||
@@ -62,7 +62,6 @@ | |||
62 | #include <linux/uio.h> | 62 | #include <linux/uio.h> |
63 | #include <asm/uaccess.h> | 63 | #include <asm/uaccess.h> |
64 | #include <linux/crc32.h> | 64 | #include <linux/crc32.h> |
65 | #include <linux/version.h> | ||
66 | 65 | ||
67 | #include "dvb_demux.h" | 66 | #include "dvb_demux.h" |
68 | #include "dvb_net.h" | 67 | #include "dvb_net.h" |
@@ -171,11 +170,7 @@ static unsigned short dvb_net_eth_type_trans(struct sk_buff *skb, | |||
171 | 170 | ||
172 | skb->mac.raw=skb->data; | 171 | skb->mac.raw=skb->data; |
173 | skb_pull(skb,dev->hard_header_len); | 172 | skb_pull(skb,dev->hard_header_len); |
174 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8) | ||
175 | eth = skb->mac.ethernet; | ||
176 | #else | ||
177 | eth = eth_hdr(skb); | 173 | eth = eth_hdr(skb); |
178 | #endif | ||
179 | 174 | ||
180 | if (*eth->h_dest & 1) { | 175 | if (*eth->h_dest & 1) { |
181 | if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0) | 176 | if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0) |
diff --git a/drivers/media/dvb/frontends/dib3000mb.c b/drivers/media/dvb/frontends/dib3000mb.c index cd434b7cf9db..21433e1831e7 100644 --- a/drivers/media/dvb/frontends/dib3000mb.c +++ b/drivers/media/dvb/frontends/dib3000mb.c | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #include <linux/config.h> | 24 | #include <linux/config.h> |
25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
26 | #include <linux/version.h> | ||
27 | #include <linux/module.h> | 26 | #include <linux/module.h> |
28 | #include <linux/moduleparam.h> | 27 | #include <linux/moduleparam.h> |
29 | #include <linux/init.h> | 28 | #include <linux/init.h> |
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index cd33705a4320..441de665fec3 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c | |||
@@ -22,7 +22,6 @@ | |||
22 | */ | 22 | */ |
23 | #include <linux/config.h> | 23 | #include <linux/config.h> |
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/version.h> | ||
26 | #include <linux/module.h> | 25 | #include <linux/module.h> |
27 | #include <linux/moduleparam.h> | 26 | #include <linux/moduleparam.h> |
28 | #include <linux/init.h> | 27 | #include <linux/init.h> |
diff --git a/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/drivers/media/dvb/ttusb-dec/ttusb_dec.c index 45c9a9a08e4d..3d08fc83a754 100644 --- a/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/dvb/ttusb-dec/ttusb_dec.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/spinlock.h> | 29 | #include <linux/spinlock.h> |
30 | #include <linux/usb.h> | 30 | #include <linux/usb.h> |
31 | #include <linux/version.h> | ||
32 | #include <linux/interrupt.h> | 31 | #include <linux/interrupt.h> |
33 | #include <linux/firmware.h> | 32 | #include <linux/firmware.h> |
34 | #include <linux/crc32.h> | 33 | #include <linux/crc32.h> |