dvfs fix, 10l

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5683 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-18 16:44:21 +00:00
parent aff16494a1
commit 684341521b
1 changed files with 8 additions and 2 deletions

View File

@ -1564,12 +1564,18 @@ static int mga_vid_initialize(void)
}
}
#ifdef CONFIG_DEVFS_FS
/*
from 2.4.17/2.4.18 linux/devfs_fs_kernel.h:
extern devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
unsigned int flags,
unsigned int major, unsigned int minor,
umode_t mode, void *ops, void *info);
*/
if ((dev_handle = devfs_register(
NULL,
"mga_vid", 0, DEVFS_FL_NONE,
"mga_vid", DEVFS_FL_NONE,
MGA_VID_MAJOR, 0,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IFCHR,
0, 0,
&mga_vid_fops, NULL)) == NULL)
#else
if(register_chrdev(MGA_VID_MAJOR, "mga_vid", &mga_vid_fops))