Subject: [patch 4/9] destroy_proc_ide_device() cleanup


When this function is called device is already unbinded from a
driver so there are no driver /proc entries to remove.

diff -Nru a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
--- a/drivers/ide/ide-proc.c 2005-02-04 03:31:24 +01:00
+++ b/drivers/ide/ide-proc.c 2005-02-04 03:31:24 +01:00
@@ -421,10 +421,7 @@

static void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
{
- ide_driver_t *driver = drive->driver;
-
if (drive->proc) {
- ide_remove_proc_entries(drive->proc, driver->proc);
ide_remove_proc_entries(drive->proc, generic_drive_entries);
remove_proc_entry(drive->name, proc_ide_root);
remove_proc_entry(drive->name, hwif->proc);