Re: [bk/patch] IDE driver model update

From: Patrick Mochel (mochel@osdl.org)
Date: Wed Oct 09 2002 - 13:43:59 EST


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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:32 EST