Commit 0db3cb7a authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] cpqarray cleanup

	switched to explicit devfs_remove()
parent 0b88527b
...@@ -307,6 +307,7 @@ static void __exit cpqarray_exit(void) ...@@ -307,6 +307,7 @@ static void __exit cpqarray_exit(void)
for (j = 0; j < NWD; j++) { for (j = 0; j < NWD; j++) {
if (ida_gendisk[i][j]->flags & GENHD_FL_UP) if (ida_gendisk[i][j]->flags & GENHD_FL_UP)
del_gendisk(ida_gendisk[i][j]); del_gendisk(ida_gendisk[i][j]);
devfs_remove("ida/c%dd%d",i,j);
put_disk(ida_gendisk[i][j]); put_disk(ida_gendisk[i][j]);
} }
} }
...@@ -437,7 +438,6 @@ static int __init cpqarray_init(void) ...@@ -437,7 +438,6 @@ static int __init cpqarray_init(void)
printk( KERN_ERR "cpqarray: out of memory"); printk( KERN_ERR "cpqarray: out of memory");
if (!num_cntlrs_reg) { if (!num_cntlrs_reg) {
devfs_remove("ida");
remove_proc_entry("cpqarray", proc_root_driver); remove_proc_entry("cpqarray", proc_root_driver);
return -ENODEV; return -ENODEV;
} }
......
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