aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 9db8978ad394..dea314ce33d3 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1199,6 +1199,8 @@ static void drive_release_dev (struct device *dev)
1199{ 1199{
1200 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); 1200 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev);
1201 1201
1202 ide_proc_unregister_device(drive);
1203
1202 spin_lock_irq(&ide_lock); 1204 spin_lock_irq(&ide_lock);
1203 ide_remove_drive_from_hwgroup(drive); 1205 ide_remove_drive_from_hwgroup(drive);
1204 kfree(drive->id); 1206 kfree(drive->id);