diff options
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 2 | ||||
-rw-r--r-- | drivers/media/radio/radio-aztech.c | 2 | ||||
-rw-r--r-- | include/media/v4l2-dev.h | 10 |
3 files changed, 9 insertions, 5 deletions
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index 7b9043f9d9bc..3368a89bfadb 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -372,7 +372,7 @@ static struct video_device rtrack_radio= | |||
372 | .owner = THIS_MODULE, | 372 | .owner = THIS_MODULE, |
373 | .name = "RadioTrack radio", | 373 | .name = "RadioTrack radio", |
374 | .type = VID_TYPE_TUNER, | 374 | .type = VID_TYPE_TUNER, |
375 | .hardware = VID_HARDWARE_RTRACK, | 375 | .hardware = 0, |
376 | .fops = &rtrack_fops, | 376 | .fops = &rtrack_fops, |
377 | }; | 377 | }; |
378 | 378 | ||
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index f21d918b3f99..3ba5fa8cf7e6 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -328,7 +328,7 @@ static struct video_device aztech_radio= | |||
328 | .owner = THIS_MODULE, | 328 | .owner = THIS_MODULE, |
329 | .name = "Aztech radio", | 329 | .name = "Aztech radio", |
330 | .type = VID_TYPE_TUNER, | 330 | .type = VID_TYPE_TUNER, |
331 | .hardware = VID_HARDWARE_AZTECH, | 331 | .hardware = 0, |
332 | .fops = &aztech_fops, | 332 | .fops = &aztech_fops, |
333 | }; | 333 | }; |
334 | 334 | ||
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 810462f8a374..c12d72d5f008 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
@@ -9,7 +9,8 @@ | |||
9 | #ifndef _V4L2_DEV_H | 9 | #ifndef _V4L2_DEV_H |
10 | #define _V4L2_DEV_H | 10 | #define _V4L2_DEV_H |
11 | 11 | ||
12 | #define OBSOLETE_OWNER 1 /* to be removed soon */ | 12 | #define OBSOLETE_OWNER 1 /* to be removed soon */ |
13 | #define OBSOLETE_DEVDATA 1 /* to be removed soon */ | ||
13 | 14 | ||
14 | #include <linux/poll.h> | 15 | #include <linux/poll.h> |
15 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
@@ -338,8 +339,6 @@ extern int video_usercopy(struct inode *inode, struct file *file, | |||
338 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | 339 | #ifdef CONFIG_VIDEO_V4L1_COMPAT |
339 | #include <linux/mm.h> | 340 | #include <linux/mm.h> |
340 | 341 | ||
341 | extern struct video_device* video_devdata(struct file*); | ||
342 | |||
343 | #define to_video_device(cd) container_of(cd, struct video_device, class_dev) | 342 | #define to_video_device(cd) container_of(cd, struct video_device, class_dev) |
344 | static inline int | 343 | static inline int |
345 | video_device_create_file(struct video_device *vfd, | 344 | video_device_create_file(struct video_device *vfd, |
@@ -370,9 +369,14 @@ static inline void video_set_drvdata(struct video_device *dev, void *data) | |||
370 | { | 369 | { |
371 | dev->priv = data; | 370 | dev->priv = data; |
372 | } | 371 | } |
372 | |||
373 | #endif | 373 | #endif |
374 | 374 | ||
375 | #ifdef OBSOLETE_DEVDATA /* to be removed soon */ | ||
376 | /* Obsolete stuff - Still needed for radio devices and obsolete drivers */ | ||
377 | extern struct video_device* video_devdata(struct file*); | ||
375 | extern int video_exclusive_open(struct inode *inode, struct file *file); | 378 | extern int video_exclusive_open(struct inode *inode, struct file *file); |
376 | extern int video_exclusive_release(struct inode *inode, struct file *file); | 379 | extern int video_exclusive_release(struct inode *inode, struct file *file); |
380 | #endif | ||
377 | 381 | ||
378 | #endif /* _V4L2_DEV_H */ | 382 | #endif /* _V4L2_DEV_H */ |