Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 540 → Rev 603

/shark/trunk/drivers/linuxc26/videodev.c
384,6 → 384,27
unregister_chrdev(VIDEO_MAJOR, VIDEO_NAME);
}
 
extern int linuxcomp_setfd(struct inode *i, int i_rdev);
/* Shark Inode emulation */
int videodev_open_inode(int num) {
struct inode *i;
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL);
linuxcomp_setfd(i,num);
if (video_open(i,NULL)) {
kfree(i);
return -1;
}
kfree(i);
return 0;
}
module_init(videodev_init)
module_exit(videodev_exit)