Commit 51e8a950 authored by Tom Rini's avatar Tom Rini

[PATCH] Make CONFIG_VIDEO_RPOC_FS depend on CONFIG_PROC_FS

This makes the CONFIG_VIDEO_PROC_FS question depend on CONFIG_PROC_FS.
Additionally, this changes all tests/comments about CONFIG_PROC_FS &&
CONFIG_VIDEO_PROC_FS to be just CONFIG_VIDEO_PROC_FS.
parent da42c921
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
mainmenu_option next_comment mainmenu_option next_comment
comment 'Video For Linux' comment 'Video For Linux'
bool ' V4L information in proc filesystem' CONFIG_VIDEO_PROC_FS dep_bool ' V4L information in proc filesystem' CONFIG_VIDEO_PROC_FS $CONFIG_PROC_FS
comment 'Video Adapters' comment 'Video Adapters'
if [ "$CONFIG_I2C_ALGOBIT" = "y" -o "$CONFIG_I2C_ALGOBIT" = "m" ]; then if [ "$CONFIG_I2C_ALGOBIT" = "y" -o "$CONFIG_I2C_ALGOBIT" = "m" ]; then
......
...@@ -44,7 +44,7 @@ static struct video_device *video_device[VIDEO_NUM_DEVICES]; ...@@ -44,7 +44,7 @@ static struct video_device *video_device[VIDEO_NUM_DEVICES];
static DECLARE_MUTEX(videodev_lock); static DECLARE_MUTEX(videodev_lock);
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
...@@ -60,7 +60,7 @@ struct proc_dir_entry *video_proc_entry = NULL; ...@@ -60,7 +60,7 @@ struct proc_dir_entry *video_proc_entry = NULL;
EXPORT_SYMBOL(video_proc_entry); EXPORT_SYMBOL(video_proc_entry);
LIST_HEAD(videodev_proc_list); LIST_HEAD(videodev_proc_list);
#endif /* CONFIG_PROC_FS && CONFIG_VIDEO_PROC_FS */ #endif /* CONFIG_VIDEO_PROC_FS */
struct video_device* video_devdata(struct file *file) struct video_device* video_devdata(struct file *file)
{ {
...@@ -198,7 +198,7 @@ extern int video_exclusive_release(struct inode *inode, struct file *file) ...@@ -198,7 +198,7 @@ extern int video_exclusive_release(struct inode *inode, struct file *file)
* /proc support * /proc support
*/ */
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
/* Hmm... i'd like to see video_capability information here, but /* Hmm... i'd like to see video_capability information here, but
* how can I access it (without changing the other drivers? -claudio * how can I access it (without changing the other drivers? -claudio
...@@ -289,7 +289,7 @@ static void videodev_proc_create(void) ...@@ -289,7 +289,7 @@ static void videodev_proc_create(void)
} }
#ifdef MODULE #ifdef MODULE
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
static void videodev_proc_destroy(void) static void videodev_proc_destroy(void)
{ {
if (video_dev_proc_entry != NULL) if (video_dev_proc_entry != NULL)
...@@ -439,7 +439,7 @@ int video_register_device(struct video_device *vfd, int type, int nr) ...@@ -439,7 +439,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
NULL); NULL);
init_MUTEX(&vfd->lock); init_MUTEX(&vfd->lock);
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
sprintf (name, "%s%d", name_base, i - base); sprintf (name, "%s%d", name_base, i - base);
videodev_proc_create_dev (vfd, name); videodev_proc_create_dev (vfd, name);
#endif #endif
...@@ -460,7 +460,7 @@ void video_unregister_device(struct video_device *vfd) ...@@ -460,7 +460,7 @@ void video_unregister_device(struct video_device *vfd)
if(video_device[vfd->minor]!=vfd) if(video_device[vfd->minor]!=vfd)
panic("videodev: bad unregister"); panic("videodev: bad unregister");
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
videodev_proc_destroy_dev (vfd); videodev_proc_destroy_dev (vfd);
#endif #endif
...@@ -489,7 +489,7 @@ static int __init videodev_init(void) ...@@ -489,7 +489,7 @@ static int __init videodev_init(void)
return -EIO; return -EIO;
} }
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
videodev_proc_create (); videodev_proc_create ();
#endif #endif
...@@ -498,7 +498,7 @@ static int __init videodev_init(void) ...@@ -498,7 +498,7 @@ static int __init videodev_init(void)
static void __exit videodev_exit(void) static void __exit videodev_exit(void)
{ {
#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS) #ifdef CONFIG_VIDEO_PROC_FS
videodev_proc_destroy (); videodev_proc_destroy ();
#endif #endif
unregister_chrdev(VIDEO_MAJOR, "video_capture"); unregister_chrdev(VIDEO_MAJOR, "video_capture");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment