Commit ef1e58e7 authored by Patrick Mochel's avatar Patrick Mochel

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. 
parent 5530a5d1
...@@ -3428,8 +3428,13 @@ static int ide_drive_remove(struct device * dev) ...@@ -3428,8 +3428,13 @@ static int ide_drive_remove(struct device * dev)
ide_drive_t * drive = container_of(dev,ide_drive_t,gendev); ide_drive_t * drive = container_of(dev,ide_drive_t,gendev);
ide_driver_t * driver = drive->driver; ide_driver_t * driver = drive->driver;
if (driver && driver->standby) if (driver) {
driver->standby(drive); if (driver->standby)
driver->standby(drive);
if (driver->cleanup)
driver->cleanup(drive);
}
return 0; return 0;
} }
......
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