aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 1ed7a8627cca..6b70ab9566d9 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -1201,7 +1201,10 @@ static void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
1201 hwif != hwgroup->hwif && 1201 hwif != hwgroup->hwif &&
1202 hwif->io_ports[IDE_CONTROL_OFFSET]) { 1202 hwif->io_ports[IDE_CONTROL_OFFSET]) {
1203 /* set nIEN for previous hwif */ 1203 /* set nIEN for previous hwif */
1204 SELECT_INTERRUPT(drive); 1204 if (hwif->intrproc)
1205 hwif->intrproc(drive);
1206 else
1207 hwif->OUTB(drive->ctl | 2, IDE_CONTROL_REG);
1205 } 1208 }
1206 hwgroup->hwif = hwif; 1209 hwgroup->hwif = hwif;
1207 hwgroup->drive = drive; 1210 hwgroup->drive = drive;