summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-29 05:41:19 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-29 05:41:19 -0300
commit997161af1eb24518d3f2cbe470b57ff133af2000 (patch)
tree7c6ce08168f3e2b799d2374a1cac7a6c970bdab4 /linux/drivers
parent892bcf236e22dc31c3b6c7212bc1513d20aa9540 (diff)
downloadmediapointer-dvb-s2-997161af1eb24518d3f2cbe470b57ff133af2000.tar.gz
mediapointer-dvb-s2-997161af1eb24518d3f2cbe470b57ff133af2000.tar.bz2
Fix compilation for mt9v022
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/mt9v022.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/mt9v022.c b/linux/drivers/media/video/mt9v022.c
index 1658fe590..1ff36edd7 100644
--- a/linux/drivers/media/video/mt9v022.c
+++ b/linux/drivers/media/video/mt9v022.c
@@ -815,12 +815,13 @@ static int mt9v022_remove(struct i2c_client *client)
return 0;
}
-
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
static const struct i2c_device_id mt9v022_id[] = {
{ "mt9v022", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, mt9v022_id);
+#endif
static struct i2c_driver mt9v022_i2c_driver = {
.driver = {
@@ -828,7 +829,9 @@ static struct i2c_driver mt9v022_i2c_driver = {
},
.probe = mt9v022_probe,
.remove = mt9v022_remove,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
.id_table = mt9v022_id,
+#endif
};
static int __init mt9v022_mod_init(void)