patch-2.4.0-test3 linux/drivers/char/videodev.c

Next file: linux/drivers/char/zr36120.c
Previous file: linux/drivers/char/vc_screen.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/char/videodev.c linux/drivers/char/videodev.c
@@ -330,6 +330,8 @@
 	video_dev_proc_entry->owner = THIS_MODULE;
 }
 
+#ifdef MODULE
+#if defined(CONFIG_PROC_FS) && defined(CONFIG_VIDEO_PROC_FS)
 static void videodev_proc_destroy(void)
 {
 	if (video_dev_proc_entry != NULL)
@@ -338,6 +340,8 @@
 	if (video_proc_entry != NULL)
 		remove_proc_entry("video", &proc_root);
 }
+#endif
+#endif
 
 static void videodev_proc_create_dev (struct video_device *vfd, char *name)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)