diff options
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 8cfce50c71e4..9926e12783bb 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -89,16 +89,14 @@ static void ide_disk_init_mult_count(ide_drive_t *drive) | |||
89 | u8 max_multsect = id[ATA_ID_MAX_MULTSECT] & 0xff; | 89 | u8 max_multsect = id[ATA_ID_MAX_MULTSECT] & 0xff; |
90 | 90 | ||
91 | if (max_multsect) { | 91 | if (max_multsect) { |
92 | #ifdef CONFIG_IDEDISK_MULTI_MODE | ||
93 | if ((max_multsect / 2) > 1) | 92 | if ((max_multsect / 2) > 1) |
94 | id[ATA_ID_MULTSECT] = max_multsect | 0x100; | 93 | id[ATA_ID_MULTSECT] = max_multsect | 0x100; |
95 | else | 94 | else |
96 | id[ATA_ID_MULTSECT] &= ~0x1ff; | 95 | id[ATA_ID_MULTSECT] &= ~0x1ff; |
97 | 96 | ||
98 | drive->mult_req = id[ATA_ID_MULTSECT] & 0xff; | 97 | drive->mult_req = id[ATA_ID_MULTSECT] & 0xff; |
99 | #endif | 98 | |
100 | if ((id[ATA_ID_MULTSECT] & 0x100) && | 99 | if (drive->mult_req) |
101 | (id[ATA_ID_MULTSECT] & 0xff)) | ||
102 | drive->special.b.set_multmode = 1; | 100 | drive->special.b.set_multmode = 1; |
103 | } | 101 | } |
104 | } | 102 | } |