diff options
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index e827b39e4b3c..449522f0540c 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -1034,12 +1034,12 @@ static int ide_disk_remove(struct device *dev) | |||
1034 | struct ide_disk_obj *idkp = drive->driver_data; | 1034 | struct ide_disk_obj *idkp = drive->driver_data; |
1035 | struct gendisk *g = idkp->disk; | 1035 | struct gendisk *g = idkp->disk; |
1036 | 1036 | ||
1037 | ide_cacheflush_p(drive); | ||
1038 | |||
1039 | ide_unregister_subdriver(drive, idkp->driver); | 1037 | ide_unregister_subdriver(drive, idkp->driver); |
1040 | 1038 | ||
1041 | del_gendisk(g); | 1039 | del_gendisk(g); |
1042 | 1040 | ||
1041 | ide_cacheflush_p(drive); | ||
1042 | |||
1043 | ide_disk_put(idkp); | 1043 | ide_disk_put(idkp); |
1044 | 1044 | ||
1045 | return 0; | 1045 | return 0; |
@@ -1089,8 +1089,8 @@ static void ide_device_shutdown(struct device *dev) | |||
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | static ide_driver_t idedisk_driver = { | 1091 | static ide_driver_t idedisk_driver = { |
1092 | .owner = THIS_MODULE, | ||
1093 | .gen_driver = { | 1092 | .gen_driver = { |
1093 | .owner = THIS_MODULE, | ||
1094 | .name = "ide-disk", | 1094 | .name = "ide-disk", |
1095 | .bus = &ide_bus_type, | 1095 | .bus = &ide_bus_type, |
1096 | .probe = ide_disk_probe, | 1096 | .probe = ide_disk_probe, |
@@ -1266,7 +1266,7 @@ static void __exit idedisk_exit (void) | |||
1266 | driver_unregister(&idedisk_driver.gen_driver); | 1266 | driver_unregister(&idedisk_driver.gen_driver); |
1267 | } | 1267 | } |
1268 | 1268 | ||
1269 | static int idedisk_init (void) | 1269 | static int __init idedisk_init(void) |
1270 | { | 1270 | { |
1271 | return driver_register(&idedisk_driver.gen_driver); | 1271 | return driver_register(&idedisk_driver.gen_driver); |
1272 | } | 1272 | } |