diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-10 01:43:25 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-10 01:43:25 +0000 |
commit | f925c632b4f136d1d154174041f6b322149e3682 (patch) | |
tree | 2e3f52ce73a9ca78c5bb7a606e4a2885963f7659 /linux/drivers/media/video/saa711x.c | |
parent | ac63d03ba48d965f169ed2595ecc2ad7b8694e95 (diff) | |
download | mediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.gz mediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.bz2 |
make tree to compile against kernel 2.5.31
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/saa711x.c')
-rw-r--r-- | linux/drivers/media/video/saa711x.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa711x.c b/linux/drivers/media/video/saa711x.c index aeca5bdbd..0ba7c6fd9 100644 --- a/linux/drivers/media/video/saa711x.c +++ b/linux/drivers/media/video/saa711x.c @@ -47,6 +47,9 @@ MODULE_LICENSE("GPL"); #include <linux/i2c.h> #include <linux/i2c-dev.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif #define I2C_NAME(s) (s)->name @@ -578,7 +581,9 @@ saa711x_detach_client (struct i2c_client *client) /* ----------------------------------------------------------------------- */ static struct i2c_driver i2c_driver_saa711x = { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) .owner = THIS_MODULE, +#endif .name = "saa711x", .id = I2C_DRIVERID_SAA711X, |