]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/ide/h8300/ide-h8300.c
ide: cleanup setting hwif->mmio flag
[mv-sheeva.git] / drivers / ide / h8300 / ide-h8300.c
index 4108ec4ffa7fb40da200a8da5abcd6aefc72f867..0708b29cdb17e3d98becee5eb1e2915cdcf97a27 100644 (file)
@@ -74,7 +74,6 @@ static inline void hwif_setup(ide_hwif_t *hwif)
 {
        default_hwif_iops(hwif);
 
-       hwif->mmio  = 1;
        hwif->OUTW  = mm_outw;
        hwif->OUTSW = mm_outsw;
        hwif->INW   = mm_inw;
@@ -99,8 +98,7 @@ static int __init h8300_ide_init(void)
 
        hw_setup(&hw);
 
-       /* register if */
-       hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]);
+       hwif = ide_find_port();
        if (hwif == NULL) {
                printk(KERN_ERR "ide-h8300: IDE I/F register failed\n");
                return -ENOENT;