Commit 7d943080 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] dsp56k cleanup

	switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent 84cbffc0
......@@ -499,8 +499,6 @@ static struct file_operations dsp56k_fops = {
/****** Init and module functions ******/
static devfs_handle_t devfs_handle;
static char banner[] __initdata = KERN_INFO "DSP56k driver installed\n";
static int __init dsp56k_init_driver(void)
......@@ -514,10 +512,10 @@ static int __init dsp56k_init_driver(void)
printk("DSP56k driver: Unable to register driver\n");
return -ENODEV;
}
devfs_handle = devfs_register(NULL, "dsp56k", DEVFS_FL_DEFAULT,
DSP56K_MAJOR, 0,
S_IFCHR | S_IRUSR | S_IWUSR,
&dsp56k_fops, NULL);
devfs_register(NULL, "dsp56k", DEVFS_FL_DEFAULT,
DSP56K_MAJOR, 0,
S_IFCHR | S_IRUSR | S_IWUSR,
&dsp56k_fops, NULL);
printk(banner);
return 0;
......@@ -527,7 +525,7 @@ module_init(dsp56k_init_driver);
static void __exit dsp56k_cleanup_driver(void)
{
unregister_chrdev(DSP56K_MAJOR, "dsp56k");
devfs_unregister(devfs_handle);
devfs_remove("dsp56k");
}
module_exit(dsp56k_cleanup_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment