summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-18 20:43:14 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-03-18 20:43:14 +0100
commit06ef9c25f9cb3d2917bdbec1442d954c77b5e66c (patch)
tree234c734973bd874c5f0816021ba20b5c9b9cb4d2 /linux/drivers
parent5248d72ef4f84010b6c5d5c2c04face875655ea2 (diff)
downloadmediapointer-dvb-s2-06ef9c25f9cb3d2917bdbec1442d954c77b5e66c.tar.gz
mediapointer-dvb-s2-06ef9c25f9cb3d2917bdbec1442d954c77b5e66c.tar.bz2
mt9v022: fix compilation warning for kernels < 2.6.26.
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/mt9v022.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/mt9v022.c b/linux/drivers/media/video/mt9v022.c
index bec6859b3..3bee30caa 100644
--- a/linux/drivers/media/video/mt9v022.c
+++ b/linux/drivers/media/video/mt9v022.c
@@ -741,8 +741,12 @@ static void mt9v022_video_remove(struct soc_camera_device *icd)
soc_camera_video_stop(icd);
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
static int mt9v022_probe(struct i2c_client *client,
const struct i2c_device_id *did)
+#else
+static int mt9v022_probe(struct i2c_client *client)
+#endif
{
struct mt9v022 *mt9v022;
struct soc_camera_device *icd;