diff options
Diffstat (limited to 'drivers/ide/legacy')
-rw-r--r-- | drivers/ide/legacy/buddha.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/gayle.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/ht6560b.c | 14 | ||||
-rw-r--r-- | drivers/ide/legacy/macide.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/q40ide.c | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/drivers/ide/legacy/buddha.c b/drivers/ide/legacy/buddha.c index 0391a3122878..1ed224a01f79 100644 --- a/drivers/ide/legacy/buddha.c +++ b/drivers/ide/legacy/buddha.c | |||
@@ -215,7 +215,7 @@ fail_base2: | |||
215 | 215 | ||
216 | index = ide_register_hw(&hw, &hwif); | 216 | index = ide_register_hw(&hw, &hwif); |
217 | if (index != -1) { | 217 | if (index != -1) { |
218 | hwif->mmio = 2; | 218 | hwif->mmio = 1; |
219 | printk("ide%d: ", index); | 219 | printk("ide%d: ", index); |
220 | switch(type) { | 220 | switch(type) { |
221 | case BOARD_BUDDHA: | 221 | case BOARD_BUDDHA: |
diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c index 64d42619ab06..dcfadbbf55d8 100644 --- a/drivers/ide/legacy/gayle.c +++ b/drivers/ide/legacy/gayle.c | |||
@@ -167,7 +167,7 @@ found: | |||
167 | 167 | ||
168 | index = ide_register_hw(&hw, &hwif); | 168 | index = ide_register_hw(&hw, &hwif); |
169 | if (index != -1) { | 169 | if (index != -1) { |
170 | hwif->mmio = 2; | 170 | hwif->mmio = 1; |
171 | switch (i) { | 171 | switch (i) { |
172 | case 0: | 172 | case 0: |
173 | printk("ide%d: Gayle IDE interface (A%d style)\n", index, | 173 | printk("ide%d: Gayle IDE interface (A%d style)\n", index, |
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c index c48e87e512d3..19ccd006f205 100644 --- a/drivers/ide/legacy/ht6560b.c +++ b/drivers/ide/legacy/ht6560b.c | |||
@@ -143,16 +143,16 @@ static void ht6560b_selectproc (ide_drive_t *drive) | |||
143 | current_timing = timing; | 143 | current_timing = timing; |
144 | if (drive->media != ide_disk || !drive->present) | 144 | if (drive->media != ide_disk || !drive->present) |
145 | select |= HT_PREFETCH_MODE; | 145 | select |= HT_PREFETCH_MODE; |
146 | (void) HWIF(drive)->INB(HT_CONFIG_PORT); | 146 | (void)inb(HT_CONFIG_PORT); |
147 | (void) HWIF(drive)->INB(HT_CONFIG_PORT); | 147 | (void)inb(HT_CONFIG_PORT); |
148 | (void) HWIF(drive)->INB(HT_CONFIG_PORT); | 148 | (void)inb(HT_CONFIG_PORT); |
149 | (void) HWIF(drive)->INB(HT_CONFIG_PORT); | 149 | (void)inb(HT_CONFIG_PORT); |
150 | HWIF(drive)->OUTB(select, HT_CONFIG_PORT); | 150 | outb(select, HT_CONFIG_PORT); |
151 | /* | 151 | /* |
152 | * Set timing for this drive: | 152 | * Set timing for this drive: |
153 | */ | 153 | */ |
154 | HWIF(drive)->OUTB(timing, IDE_SELECT_REG); | 154 | outb(timing, IDE_SELECT_REG); |
155 | (void) HWIF(drive)->INB(IDE_STATUS_REG); | 155 | (void)inb(IDE_STATUS_REG); |
156 | #ifdef DEBUG | 156 | #ifdef DEBUG |
157 | printk("ht6560b: %s: select=%#x timing=%#x\n", | 157 | printk("ht6560b: %s: select=%#x timing=%#x\n", |
158 | drive->name, select, timing); | 158 | drive->name, select, timing); |
diff --git a/drivers/ide/legacy/macide.c b/drivers/ide/legacy/macide.c index b1730d7e414c..4c0079ad52ac 100644 --- a/drivers/ide/legacy/macide.c +++ b/drivers/ide/legacy/macide.c | |||
@@ -141,7 +141,7 @@ void macide_init(void) | |||
141 | } | 141 | } |
142 | 142 | ||
143 | if (index != -1) { | 143 | if (index != -1) { |
144 | hwif->mmio = 2; | 144 | hwif->mmio = 1; |
145 | if (macintosh_config->ide_type == MAC_IDE_QUADRA) | 145 | if (macintosh_config->ide_type == MAC_IDE_QUADRA) |
146 | printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index); | 146 | printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index); |
147 | else if (macintosh_config->ide_type == MAC_IDE_PB) | 147 | else if (macintosh_config->ide_type == MAC_IDE_PB) |
diff --git a/drivers/ide/legacy/q40ide.c b/drivers/ide/legacy/q40ide.c index 434a94faa3b7..74f08124eabb 100644 --- a/drivers/ide/legacy/q40ide.c +++ b/drivers/ide/legacy/q40ide.c | |||
@@ -145,7 +145,7 @@ void q40ide_init(void) | |||
145 | index = ide_register_hw(&hw, &hwif); | 145 | index = ide_register_hw(&hw, &hwif); |
146 | // **FIXME** | 146 | // **FIXME** |
147 | if (index != -1) | 147 | if (index != -1) |
148 | hwif->mmio = 2; | 148 | hwif->mmio = 1; |
149 | } | 149 | } |
150 | } | 150 | } |
151 | 151 | ||