diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-18 14:12:43 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-18 14:12:43 -0500 |
commit | 815e19f2f48c5a8e920be81523aca51206d7750b (patch) | |
tree | a28eeffb5bbb9bab5e7b96097e04cddfdef20a91 /linux/drivers/media | |
parent | 03fd6c50d68ef10f899577a933b760e10d90bac1 (diff) | |
download | mediapointer-dvb-s2-815e19f2f48c5a8e920be81523aca51206d7750b.tar.gz mediapointer-dvb-s2-815e19f2f48c5a8e920be81523aca51206d7750b.tar.bz2 |
fix build for kernels prior to 2.6.13
From: Michael Krufky <mkrufky@linuxtv.org>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
+static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
+#endif
/* magic definition of all other variables and things */
I2C_CLIENT_INSMOD;
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/tda9840.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/tea6415c.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/tea6420.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tda9840.c b/linux/drivers/media/video/tda9840.c index 4677399db..42a842aec 100644 --- a/linux/drivers/media/video/tda9840.c +++ b/linux/drivers/media/video/tda9840.c @@ -46,6 +46,9 @@ MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); /* addresses to scan, found only at 0x42 (7-Bit) */ static unsigned short normal_i2c[] = { I2C_ADDR_TDA9840, I2C_CLIENT_END }; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) +static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; +#endif /* magic definition of all other variables and things */ I2C_CLIENT_INSMOD; diff --git a/linux/drivers/media/video/tea6415c.c b/linux/drivers/media/video/tea6415c.c index 12e83ad21..98434efb0 100644 --- a/linux/drivers/media/video/tea6415c.c +++ b/linux/drivers/media/video/tea6415c.c @@ -46,6 +46,9 @@ MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); /* addresses to scan, found only at 0x03 and/or 0x43 (7-bit) */ static unsigned short normal_i2c[] = { I2C_TEA6415C_1, I2C_TEA6415C_2, I2C_CLIENT_END }; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) +static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; +#endif /* magic definition of all other variables and things */ I2C_CLIENT_INSMOD; diff --git a/linux/drivers/media/video/tea6420.c b/linux/drivers/media/video/tea6420.c index 27454cbb8..b5e41f49b 100644 --- a/linux/drivers/media/video/tea6420.c +++ b/linux/drivers/media/video/tea6420.c @@ -43,6 +43,9 @@ MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); /* addresses to scan, found only at 0x4c and/or 0x4d (7-Bit) */ static unsigned short normal_i2c[] = { I2C_ADDR_TEA6420_1, I2C_ADDR_TEA6420_2, I2C_CLIENT_END }; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) +static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; +#endif /* magic definition of all other variables and things */ I2C_CLIENT_INSMOD; |