Mercurial > mplayer.hg
changeset 6086:ad794ccafc55
devfs fallback support?
author | arpi |
---|---|
date | Mon, 13 May 2002 22:10:11 +0000 |
parents | 7991a40101d8 |
children | 8be92a9b30a4 |
files | drivers/mga_vid.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/drivers/mga_vid.c Mon May 13 22:03:37 2002 +0000 +++ b/drivers/mga_vid.c Mon May 13 22:10:11 2002 +0000 @@ -1580,8 +1580,8 @@ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IFCHR, &mga_vid_fops, NULL)) == NULL) { - printk(KERN_ERR "mga_vid: unable to get major: %d (devfs)\n", MGA_VID_MAJOR); - return -EIO; + printk(KERN_ERR "mga_vid: unable to get major: %d (devfs) => fallback to non-devfs mode\n", MGA_VID_MAJOR); +// return -EIO; } #endif if(register_chrdev(MGA_VID_MAJOR, "mga_vid", &mga_vid_fops)) @@ -1594,7 +1594,7 @@ { printk(KERN_ERR "mga_vid: no supported devices found\n"); #ifdef CONFIG_DEVFS_FS - devfs_unregister(dev_handle); + if(dev_handle) devfs_unregister(dev_handle); #endif unregister_chrdev(MGA_VID_MAJOR, "mga_vid"); return -EINVAL; @@ -1626,7 +1626,7 @@ //FIXME turn off BES printk(KERN_INFO "mga_vid: Cleaning up module\n"); #ifdef CONFIG_DEVFS_FS - devfs_unregister(dev_handle); + if(dev_handle) devfs_unregister(dev_handle); #endif unregister_chrdev(MGA_VID_MAJOR, "mga_vid"); }