lkml.org 
[lkml]   [2003]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ov511 2.6.0-test3
Stefan B. wrote:

> Try adding this to driver/media/video/videodev.c:
> (e.g. after the other EXPORT_SYMBOL lines)
>
> void *video_proc_entry;
> EXPORT_SYMBOL(video_proc_entry);
>

sorry, not good; this patch should do
diff -Nru drivers/media/video/videodev.c
--- drivers/media/video/videodev.c Sun Aug 10 07:01:27 2003
+++ drivers/media/video/videodev.c Sun Aug 10 07:05:37 2003
@@ -367,6 +367,8 @@
* Initialise video for linux
*/

+struct proc_dir_entry *video_proc_entry = NULL;
+
static int __init videodev_init(void)
{
printk(KERN_INFO "Linux video capture interface: v1.00\n");
@@ -375,11 +377,19 @@
return -EIO;
}
class_register(&video_class);
+
+ video_proc_entry = create_proc_entry("video", S_IFDIR, &proc_root);
+ if (video_proc_entry)
+ video_proc_entry->owner = THIS_MODULE;
return 0;
}

static void __exit videodev_exit(void)
{
+ if (video_proc_entry)
+ remove_proc_entry("video", &proc_root);
+ video_proc_entry = NULL;
+
class_unregister(&video_class);
unregister_chrdev(VIDEO_MAJOR, VIDEO_NAME);
}
@@ -395,6 +405,7 @@
EXPORT_SYMBOL(video_exclusive_release);
EXPORT_SYMBOL(video_device_alloc);
EXPORT_SYMBOL(video_device_release);
+EXPORT_SYMBOL(video_proc_entry);

MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("Device registrar for Video4Linux drivers");
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.072 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site