|
@@ -1050,8 +1050,7 @@ static void ide_disk_pre_reset(ide_drive_t *drive)
|
|
drive->special.all = 0;
|
|
drive->special.all = 0;
|
|
drive->special.b.set_geometry = legacy;
|
|
drive->special.b.set_geometry = legacy;
|
|
drive->special.b.recalibrate = legacy;
|
|
drive->special.b.recalibrate = legacy;
|
|
- if (OK_TO_RESET_CONTROLLER)
|
|
|
|
- drive->mult_count = 0;
|
|
|
|
|
|
+ drive->mult_count = 0;
|
|
if (!drive->keep_settings && !drive->using_dma)
|
|
if (!drive->keep_settings && !drive->using_dma)
|
|
drive->mult_req = 0;
|
|
drive->mult_req = 0;
|
|
if (drive->mult_req != drive->mult_count)
|
|
if (drive->mult_req != drive->mult_count)
|
|
@@ -1136,7 +1135,6 @@ static ide_startstop_t do_reset1 (ide_drive_t *drive, int do_not_try_atapi)
|
|
for (unit = 0; unit < MAX_DRIVES; ++unit)
|
|
for (unit = 0; unit < MAX_DRIVES; ++unit)
|
|
pre_reset(&hwif->drives[unit]);
|
|
pre_reset(&hwif->drives[unit]);
|
|
|
|
|
|
-#if OK_TO_RESET_CONTROLLER
|
|
|
|
if (!IDE_CONTROL_REG) {
|
|
if (!IDE_CONTROL_REG) {
|
|
spin_unlock_irqrestore(&ide_lock, flags);
|
|
spin_unlock_irqrestore(&ide_lock, flags);
|
|
return ide_stopped;
|
|
return ide_stopped;
|
|
@@ -1173,11 +1171,8 @@ static ide_startstop_t do_reset1 (ide_drive_t *drive, int do_not_try_atapi)
|
|
* state when the disks are reset this way. At least, the Winbond
|
|
* state when the disks are reset this way. At least, the Winbond
|
|
* 553 documentation says that
|
|
* 553 documentation says that
|
|
*/
|
|
*/
|
|
- if (hwif->resetproc != NULL) {
|
|
|
|
|
|
+ if (hwif->resetproc)
|
|
hwif->resetproc(drive);
|
|
hwif->resetproc(drive);
|
|
- }
|
|
|
|
-
|
|
|
|
-#endif /* OK_TO_RESET_CONTROLLER */
|
|
|
|
|
|
|
|
spin_unlock_irqrestore(&ide_lock, flags);
|
|
spin_unlock_irqrestore(&ide_lock, flags);
|
|
return ide_started;
|
|
return ide_started;
|