summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/v4l2-dev.c
diff options
context:
space:
mode:
authorAntoine Jacquet <royale@zerezo.com>2008-08-18 23:18:18 +0200
committerAntoine Jacquet <royale@zerezo.com>2008-08-18 23:18:18 +0200
commite04f4692fb946b6480f856cb4986bacdc3a25f67 (patch)
tree569253cfb9f1e2e656af7e27ccde5d1fd4361f81 /linux/drivers/media/video/v4l2-dev.c
parent907cb68cd937317d682455610490e10b06389d22 (diff)
parenta499d8eb7179d0990c06b89c3362af960c7d9eef (diff)
downloadmediapointer-dvb-s2-e04f4692fb946b6480f856cb4986bacdc3a25f67.tar.gz
mediapointer-dvb-s2-e04f4692fb946b6480f856cb4986bacdc3a25f67.tar.bz2
merge: v4l-dvb
From: Antoine Jacquet <royale@zerezo.com> Priority: normal Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Diffstat (limited to 'linux/drivers/media/video/v4l2-dev.c')
-rw-r--r--linux/drivers/media/video/v4l2-dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/linux/drivers/media/video/v4l2-dev.c b/linux/drivers/media/video/v4l2-dev.c
index 398376a40..d97320091 100644
--- a/linux/drivers/media/video/v4l2-dev.c
+++ b/linux/drivers/media/video/v4l2-dev.c
@@ -356,10 +356,8 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
/* sysfs class */
memset(&vfd->dev, 0x00, sizeof(vfd->dev));
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
vfd->dev.class = &video_class;
vfd->dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor);
-#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
if (vfd->parent)
vfd->dev.dev = vfd->parent;