From f925c632b4f136d1d154174041f6b322149e3682 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 10 Dec 2005 01:43:25 +0000 Subject: make tree to compile against kernel 2.5.31 kernel-sync Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/saa711x.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux/drivers/media/video/saa711x.c') 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 #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include +#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, -- cgit v1.2.3