projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd8f46f
)
ide-disk: use ata_id_wcache_enabled()
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:20 +0000
(22:39 +0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:20 +0000
(22:39 +0200)
Replace open-coded check by ata_id_wcache_enabled()
(which also checks validity of word 85).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-disk.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-disk.c
b/drivers/ide/ide-disk.c
index 8f1ec037309a94b84b4fa3463a381f4054593045..696658d504db6ade5325904d8b315e0e32a0a87c 100644
(file)
--- a/
drivers/ide/ide-disk.c
+++ b/
drivers/ide/ide-disk.c
@@
-889,7
+889,7
@@
static void idedisk_setup(ide_drive_t *drive)
drive->bios_cyl, drive->bios_head, drive->bios_sect);
/* write cache enabled? */
- if ((id[ATA_ID_CSFO] & 1) ||
(id[ATA_ID_CFS_ENABLE_1] & (1 << 5)
))
+ if ((id[ATA_ID_CSFO] & 1) ||
ata_id_wcache_enabled(id
))
drive->wcache = 1;
write_cache(drive, 1);