diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:08 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:08 -0500 |
commit | 4ee06b7e677da4c75f2fcc5fd850543852d18bf2 (patch) | |
tree | 0c7c4b1e2be3179cc25e95f4148577cd9047e398 /drivers/ide/ide-iops.c | |
parent | f1ca6d37f991347b87d86430db42e2ab139d1b1d (diff) |
ide: remove stale ide.h "configuration options"
Remove stale ide.h "configuration options":
* INITIAL_MULT_COUNT - always defined to 0
* SUPPORT_SLOW_DATA_PORTS - unused
* OK_TO_RESET_CONTROLLER - always defined to 1
* DISABLE_IRQ_NOSYNC - always defined to 0
Leave SUPPORT_VLB_SYNC (defined to 0 for CRIS and FRV, otherwise to 1)
for now but disallow overriding it by <asm/ide.h>.
There should be no functionality changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 6a6d1c188030..617888048eed 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -1050,8 +1050,7 @@ static void ide_disk_pre_reset(ide_drive_t *drive) | |||
1050 | drive->special.all = 0; | 1050 | drive->special.all = 0; |
1051 | drive->special.b.set_geometry = legacy; | 1051 | drive->special.b.set_geometry = legacy; |
1052 | drive->special.b.recalibrate = legacy; | 1052 | drive->special.b.recalibrate = legacy; |
1053 | if (OK_TO_RESET_CONTROLLER) | 1053 | drive->mult_count = 0; |
1054 | drive->mult_count = 0; | ||
1055 | if (!drive->keep_settings && !drive->using_dma) | 1054 | if (!drive->keep_settings && !drive->using_dma) |
1056 | drive->mult_req = 0; | 1055 | drive->mult_req = 0; |
1057 | if (drive->mult_req != drive->mult_count) | 1056 | 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) | |||
1136 | for (unit = 0; unit < MAX_DRIVES; ++unit) | 1135 | for (unit = 0; unit < MAX_DRIVES; ++unit) |
1137 | pre_reset(&hwif->drives[unit]); | 1136 | pre_reset(&hwif->drives[unit]); |
1138 | 1137 | ||
1139 | #if OK_TO_RESET_CONTROLLER | ||
1140 | if (!IDE_CONTROL_REG) { | 1138 | if (!IDE_CONTROL_REG) { |
1141 | spin_unlock_irqrestore(&ide_lock, flags); | 1139 | spin_unlock_irqrestore(&ide_lock, flags); |
1142 | return ide_stopped; | 1140 | return ide_stopped; |
@@ -1173,11 +1171,8 @@ static ide_startstop_t do_reset1 (ide_drive_t *drive, int do_not_try_atapi) | |||
1173 | * state when the disks are reset this way. At least, the Winbond | 1171 | * state when the disks are reset this way. At least, the Winbond |
1174 | * 553 documentation says that | 1172 | * 553 documentation says that |
1175 | */ | 1173 | */ |
1176 | if (hwif->resetproc != NULL) { | 1174 | if (hwif->resetproc) |
1177 | hwif->resetproc(drive); | 1175 | hwif->resetproc(drive); |
1178 | } | ||
1179 | |||
1180 | #endif /* OK_TO_RESET_CONTROLLER */ | ||
1181 | 1176 | ||
1182 | spin_unlock_irqrestore(&ide_lock, flags); | 1177 | spin_unlock_irqrestore(&ide_lock, flags); |
1183 | return ide_started; | 1178 | return ide_started; |