ide: sanitize ide_unregister() usage
* Remove ide_unregister() call from ide_exit() (host drivers take care of unregistering hwif-s themselves). * Remove ide_unregister() call from probe methods of bast-ide, palm_bk3710, ide-cs and delkin_cb host drivers (ide_find_port() returns only free ide_hwifs[] entries). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -1349,11 +1349,6 @@ int __init init_module (void)
|
||||
|
||||
void __exit cleanup_module (void)
|
||||
{
|
||||
int index;
|
||||
|
||||
for (index = 0; index < MAX_HWIFS; ++index)
|
||||
ide_unregister(index);
|
||||
|
||||
proc_ide_destroy();
|
||||
|
||||
class_destroy(ide_port_class);
|
||||
|
Reference in New Issue
Block a user