aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ide/ide-disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
index 8f1ec037309a..696658d504db 100644
--- a/drivers/ide/ide-disk.c
+++ b/drivers/ide/ide-disk.c
@@ -889,7 +889,7 @@ static void idedisk_setup(ide_drive_t *drive)
889 drive->bios_cyl, drive->bios_head, drive->bios_sect); 889 drive->bios_cyl, drive->bios_head, drive->bios_sect);
890 890
891 /* write cache enabled? */ 891 /* write cache enabled? */
892 if ((id[ATA_ID_CSFO] & 1) || (id[ATA_ID_CFS_ENABLE_1] & (1 << 5))) 892 if ((id[ATA_ID_CSFO] & 1) || ata_id_wcache_enabled(id))
893 drive->wcache = 1; 893 drive->wcache = 1;
894 894
895 write_cache(drive, 1); 895 write_cache(drive, 1);