aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/legacy
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:36 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:36 -0400
commitd393aa0326436efd3cb800916b08cdac4dd1091a (patch)
tree2fae9665c336a40d9a20a77612cac61daf107dce /drivers/ide/legacy
parent69e88d2a754fcaf7ef8ca465586b811cf40dc479 (diff)
ide: take ide_lock for prefetch disable/enable in do_special()
Take ide_lock for prefetch disable/enable in do_special(), then cleanup cmd640 and ht6560b host drivers. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/legacy')
-rw-r--r--drivers/ide/legacy/ht6560b.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c
index 4a93adbab1de..a4245d13f11b 100644
--- a/drivers/ide/legacy/ht6560b.c
+++ b/drivers/ide/legacy/ht6560b.c
@@ -286,12 +286,7 @@ static void ht6560b_set_pio_mode(ide_drive_t *drive, const u8 pio)
286 switch (pio) { 286 switch (pio) {
287 case 8: /* set prefetch off */ 287 case 8: /* set prefetch off */
288 case 9: /* set prefetch on */ 288 case 9: /* set prefetch on */
289 /*
290 * take ide_lock for drive->[no_]unmask
291 */
292 spin_lock_irqsave(&ide_lock, flags);
293 ht_set_prefetch(drive, pio & 1); 289 ht_set_prefetch(drive, pio & 1);
294 spin_unlock_irqrestore(&ide_lock, flags);
295 return; 290 return;
296 } 291 }
297 292