From ef1e7dfe864a51061b99a34209c87648b6495ee1 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Mon, 8 Sep 2008 23:01:33 +0200 Subject: ivtv: fix broken saa7127 load on kernels < 2.6.26. From: Hans Verkuil Thanks to Martin Dauskardt for finding this. Priority: normal Signed-off-by: Hans Verkuil --- linux/drivers/media/video/ivtv/ivtv-i2c.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/drivers/media/video/ivtv/ivtv-i2c.c b/linux/drivers/media/video/ivtv/ivtv-i2c.c index 180f541f0..6c37203db 100644 --- a/linux/drivers/media/video/ivtv/ivtv-i2c.c +++ b/linux/drivers/media/video/ivtv/ivtv-i2c.c @@ -133,7 +133,11 @@ static const u8 hw_addrs[] = { static const char * const hw_devicenames[] = { "cx25840", "saa7115", +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) "saa7127_auto", /* saa7127 or saa7129 */ +#else + "saa7127", /* saa7127 or saa7129 */ +#endif "msp3400", "tuner", "wm8775", -- cgit v1.2.3