diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-30 21:58:17 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-30 21:58:17 +0100 |
commit | 1ca1203a1eab7dc3951e569975bbbccc76aeb8fe (patch) | |
tree | 01ebfe8e3873a2bb62ce33fb2e2e125ce7fc966a /linux/drivers/media/video/mt9t031.c | |
parent | 3f85abb813f1ad7454fb7a2f8e2998373571fe39 (diff) | |
download | mediapointer-dvb-s2-1ca1203a1eab7dc3951e569975bbbccc76aeb8fe.tar.gz mediapointer-dvb-s2-1ca1203a1eab7dc3951e569975bbbccc76aeb8fe.tar.bz2 |
v4l: fix compile errors for older kernels
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/mt9t031.c')
-rw-r--r-- | linux/drivers/media/video/mt9t031.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/mt9t031.c b/linux/drivers/media/video/mt9t031.c index 349d8e365..dd5bd9dd0 100644 --- a/linux/drivers/media/video/mt9t031.c +++ b/linux/drivers/media/video/mt9t031.c @@ -632,8 +632,12 @@ static void mt9t031_video_remove(struct soc_camera_device *icd) soc_camera_video_stop(icd); } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +static int mt9t031_probe(struct i2c_client *client) +#else static int mt9t031_probe(struct i2c_client *client, const struct i2c_device_id *did) +#endif { struct mt9t031 *mt9t031; struct soc_camera_device *icd; @@ -703,19 +707,23 @@ static int mt9t031_remove(struct i2c_client *client) return 0; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) static const struct i2c_device_id mt9t031_id[] = { { "mt9t031", 0 }, { } }; MODULE_DEVICE_TABLE(i2c, mt9t031_id); +#endif static struct i2c_driver mt9t031_i2c_driver = { .driver = { .name = "mt9t031", }, .probe = mt9t031_probe, .remove = mt9t031_remove, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) .id_table = mt9t031_id, +#endif }; static int __init mt9t031_mod_init(void) |