Commit 8b495a0a authored by Patrick Mochel's avatar Patrick Mochel

IDE: call device_unregister() instead of put_device() in ide-disk->cleanup().

parent 62ccfd0f
...@@ -1692,7 +1692,7 @@ static int idedisk_cleanup (ide_drive_t *drive) ...@@ -1692,7 +1692,7 @@ static int idedisk_cleanup (ide_drive_t *drive)
{ {
struct gendisk *g = drive->disk; struct gendisk *g = drive->disk;
put_device(&drive->disk->disk_dev); device_unregister(&drive->disk->disk_dev);
if ((drive->id->cfs_enable_2 & 0x3000) && drive->wcache) if ((drive->id->cfs_enable_2 & 0x3000) && drive->wcache)
if (do_idedisk_flushcache(drive)) if (do_idedisk_flushcache(drive))
printk (KERN_INFO "%s: Write Cache FAILED Flushing!\n", printk (KERN_INFO "%s: Write Cache FAILED Flushing!\n",
......
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