Messages in this thread Patch in this message | | | Date | Wed, 9 Oct 2002 11:43:59 -0700 (PDT) | From | Patrick Mochel <> | Subject | Re: [bk/patch] IDE driver model update |
| |
ChangeSet@1.730, 2002-10-09 11:40:34-07:00, mochel@osdl.org IDE: make ide_drive_remove() call driver's ->cleanup().
This was accidentally dropped before, but re-added now to completely mimic behavior of the reboot notifier IDE used to have.
diff -Nru a/drivers/ide/ide.c b/drivers/ide/ide.c --- a/drivers/ide/ide.c Wed Oct 9 11:41:35 2002 +++ b/drivers/ide/ide.c Wed Oct 9 11:41:35 2002 @@ -3428,8 +3428,13 @@ ide_drive_t * drive = container_of(dev,ide_drive_t,gendev); ide_driver_t * driver = drive->driver; - if (driver && driver->standby) - driver->standby(drive); + if (driver) { + if (driver->standby) + driver->standby(drive); + if (driver->cleanup) + driver->cleanup(drive); + } + return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |