summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tea6415c.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-03-18 14:12:43 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2006-03-18 14:12:43 -0500
commit815e19f2f48c5a8e920be81523aca51206d7750b (patch)
treea28eeffb5bbb9bab5e7b96097e04cddfdef20a91 /linux/drivers/media/video/tea6415c.c
parent03fd6c50d68ef10f899577a933b760e10d90bac1 (diff)
downloadmediapointer-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/video/tea6415c.c')
-rw-r--r--linux/drivers/media/video/tea6415c.c3
1 files changed, 3 insertions, 0 deletions
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;