aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2005-09-09 16:02:20 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:35 -0400
commit34f7373aaec80564cc87b7829e4e2a0e3c20c4b7 (patch)
tree35bec695bc46357aa59b4efe5a0613008f10a836 /drivers/media/common
parenta8d995c99ef56a3dbcdbe291bb71658bf00e9ad6 (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/common')
-rw-r--r--drivers/media/common/saa7146_fops.c1
-rw-r--r--drivers/media/common/saa7146_i2c.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
index c04fd11526e0..37888989ea2e 100644
--- a/drivers/media/common/saa7146_fops.c
+++ b/drivers/media/common/saa7146_fops.c
@@ -1,5 +1,4 @@
1#include <media/saa7146_vv.h> 1#include <media/saa7146_vv.h>
2#include <linux/version.h>
3 2
4#define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && dev->vv_data->vbi_minor != -1) 3#define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && dev->vv_data->vbi_minor != -1)
5 4
diff --git a/drivers/media/common/saa7146_i2c.c b/drivers/media/common/saa7146_i2c.c
index 6284894505c6..45f86737699a 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -1,4 +1,3 @@
1#include <linux/version.h>
2#include <media/saa7146_vv.h> 1#include <media/saa7146_vv.h>
3 2
4static u32 saa7146_i2c_func(struct i2c_adapter *adapter) 3static u32 saa7146_i2c_func(struct i2c_adapter *adapter)
@@ -402,12 +401,8 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c
402 saa7146_i2c_reset(dev); 401 saa7146_i2c_reset(dev);
403 402
404 if( NULL != i2c_adapter ) { 403 if( NULL != i2c_adapter ) {
405#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
406 i2c_adapter->data = dev;
407#else
408 BUG_ON(!i2c_adapter->class); 404 BUG_ON(!i2c_adapter->class);
409 i2c_set_adapdata(i2c_adapter,dev); 405 i2c_set_adapdata(i2c_adapter,dev);
410#endif
411 i2c_adapter->algo = &saa7146_algo; 406 i2c_adapter->algo = &saa7146_algo;
412 i2c_adapter->algo_data = NULL; 407 i2c_adapter->algo_data = NULL;
413 i2c_adapter->id = I2C_HW_SAA7146; 408 i2c_adapter->id = I2C_HW_SAA7146;