]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/ide/legacy/ide_platform.c
ide: cleanup setting hwif->mmio flag
[mv-sheeva.git] / drivers / ide / legacy / ide_platform.c
index 361b1bb544bf442ccf136aadd316839d4ae24f4e..822f48b05c702b5b9a177ebe559681486187271b 100644 (file)
@@ -89,7 +89,7 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
                        res_alt->start, res_alt->end - res_alt->start + 1);
        }
 
-       hwif = ide_find_port((unsigned long)base);
+       hwif = ide_find_port();
        if (!hwif) {
                ret = -ENODEV;
                goto out;
@@ -101,10 +101,8 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
 
        ide_init_port_hw(hwif, &hw);
 
-       if (mmio) {
-               hwif->mmio = 1;
+       if (mmio)
                default_hwif_mmiops(hwif);
-       }
 
        idx[0] = hwif->index;