Commit 8eeeb1b9 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] remove bogus comment and code from ide_unregister_driver()

When ide_remove_proc_entries() is called, driver specific /proc/ide/hdx/
entries have been already removed by ->cleanup()->ide_unregister_subdriver().
parent 09eb39e8
...@@ -2364,12 +2364,6 @@ void ide_unregister_driver(ide_driver_t *driver) ...@@ -2364,12 +2364,6 @@ void ide_unregister_driver(ide_driver_t *driver)
printk(KERN_ERR "%s: cleanup_module() called while still busy\n", drive->name); printk(KERN_ERR "%s: cleanup_module() called while still busy\n", drive->name);
BUG(); BUG();
} }
/* We must remove proc entries defined in this module.
Otherwise we oops while accessing these entries */
#ifdef CONFIG_PROC_FS
if (drive->proc)
ide_remove_proc_entries(drive->proc, driver->proc);
#endif
ata_attach(drive); ata_attach(drive);
} }
} }
......
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