]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/h8300/ide-h8300.c
ide: remove [ata_]select_t
[linux-2.6-omap-h63xx.git] / drivers / ide / h8300 / ide-h8300.c
index 84644e1505311a9f3643d52c1cf0a51c7625ee9b..e2cdd2e9cdecc70d388be220b3128d19efaf9de2 100644 (file)
@@ -80,7 +80,7 @@ static void h8300_tf_load(ide_drive_t *drive, ide_task_t *task)
                outb(tf->lbah, io_ports->lbah_addr);
 
        if (task->tf_flags & IDE_TFLAG_OUT_DEVICE)
-               outb((tf->device & HIHI) | drive->select.all,
+               outb((tf->device & HIHI) | drive->select,
                     io_ports->device_addr);
 }
 
@@ -191,10 +191,7 @@ static const struct ide_port_info h8300_port_info = {
 
 static int __init h8300_ide_init(void)
 {
-       ide_hwif_t *hwif;
-       int index;
        hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
-       u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
 
        printk(KERN_INFO DRV_NAME ": H8/300 generic IDE interface\n");
 
@@ -207,17 +204,7 @@ static int __init h8300_ide_init(void)
 
        hw_setup(&hw);
 
-       hwif = ide_find_port_slot(&h8300_port_info);
-       if (hwif == NULL)
-               return -ENOENT;
-
-       index = hwif->index;
-
-       idx[0] = index;
-
-       ide_device_add(idx, &h8300_port_info, hws);
-
-       return 0;
+       return ide_host_add(&h8300_port_info, hws, NULL);
 
 out_busy:
        printk(KERN_ERR "ide-h8300: IDE I/F resource already used.\n");