diff options
Diffstat (limited to 'drivers/ide/legacy/ht6560b.c')
-rw-r--r-- | drivers/ide/legacy/ht6560b.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c index 5123ea291d0..c7e5c2246b7 100644 --- a/drivers/ide/legacy/ht6560b.c +++ b/drivers/ide/legacy/ht6560b.c | |||
@@ -120,7 +120,8 @@ static void ht6560b_selectproc (ide_drive_t *drive) | |||
120 | * Need to enforce prefetch sometimes because otherwise | 120 | * Need to enforce prefetch sometimes because otherwise |
121 | * it'll hang (hard). | 121 | * it'll hang (hard). |
122 | */ | 122 | */ |
123 | if (drive->media != ide_disk || !drive->present) | 123 | if (drive->media != ide_disk || |
124 | (drive->dev_flags & IDE_DFLAG_PRESENT) == 0) | ||
124 | select |= HT_PREFETCH_MODE; | 125 | select |= HT_PREFETCH_MODE; |
125 | 126 | ||
126 | if (select != current_select || timing != current_timing) { | 127 | if (select != current_select || timing != current_timing) { |
@@ -249,11 +250,11 @@ static void ht_set_prefetch(ide_drive_t *drive, u8 state) | |||
249 | */ | 250 | */ |
250 | if (state) { | 251 | if (state) { |
251 | drive->drive_data |= t; /* enable prefetch mode */ | 252 | drive->drive_data |= t; /* enable prefetch mode */ |
252 | drive->no_unmask = 1; | 253 | drive->dev_flags |= IDE_DFLAG_NO_UNMASK; |
253 | drive->unmask = 0; | 254 | drive->dev_flags &= ~IDE_DFLAG_UNMASK; |
254 | } else { | 255 | } else { |
255 | drive->drive_data &= ~t; /* disable prefetch mode */ | 256 | drive->drive_data &= ~t; /* disable prefetch mode */ |
256 | drive->no_unmask = 0; | 257 | drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; |
257 | } | 258 | } |
258 | 259 | ||
259 | spin_unlock_irqrestore(&ht6560b_lock, flags); | 260 | spin_unlock_irqrestore(&ht6560b_lock, flags); |