summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/mt9v022.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/mt9v022.c')
-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)