]> err.no Git - linux-2.6/blobdiff - drivers/ide/h8300/ide-h8300.c
Merge branch 'linus' into cpus4096
[linux-2.6] / drivers / ide / h8300 / ide-h8300.c
index 6bd143cf08914a550a3234d01dec3f083dd0ae83..ae37ee58bae27a474f80fc3e72edbafc6528cad2 100644 (file)
@@ -52,8 +52,6 @@ static void h8300_tf_load(ide_drive_t *drive, ide_task_t *task)
        if (task->tf_flags & IDE_TFLAG_FLAGGED)
                HIHI = 0xFF;
 
-       ide_set_irq(drive, 1);
-
        if (task->tf_flags & IDE_TFLAG_OUT_DATA)
                mm_outw((tf->hob_data << 8) | tf->data, io_ports->data_addr);
 
@@ -98,7 +96,7 @@ static void h8300_tf_read(ide_drive_t *drive, ide_task_t *task)
        }
 
        /* be sure we're looking at the low order bits */
-       outb(drive->ctl & ~0x80, io_ports->ctl_addr);
+       outb(ATA_DEVCTL_OBS & ~0x80, io_ports->ctl_addr);
 
        if (task->tf_flags & IDE_TFLAG_IN_NSECT)
                tf->nsect  = inb(io_ports->nsect_addr);
@@ -112,7 +110,7 @@ static void h8300_tf_read(ide_drive_t *drive, ide_task_t *task)
                tf->device = inb(io_ports->device_addr);
 
        if (task->tf_flags & IDE_TFLAG_LBA48) {
-               outb(drive->ctl | 0x80, io_ports->ctl_addr);
+               outb(ATA_DEVCTL_OBS | 0x80, io_ports->ctl_addr);
 
                if (task->tf_flags & IDE_TFLAG_IN_HOB_FEATURE)
                        tf->hob_feature = inb(io_ports->feature_addr);
@@ -176,9 +174,6 @@ static inline void hwif_setup(ide_hwif_t *hwif)
 
        hwif->input_data  = h8300_input_data;
        hwif->output_data = h8300_output_data;
-
-       hwif->OUTW  = mm_outw;
-       hwif->INW   = mm_inw;
 }
 
 static int __init h8300_ide_init(void)