]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
au1xxx-ide: use ide_find_port()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:33 +0000 (17:36 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:33 +0000 (17:36 +0200)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/mips/au1xxx-ide.c

index 9b628248f2f4a8c174c32b027671a21303317c21..a8cd0035936d18e98edbd58061670b06c0ba1281 100644 (file)
@@ -599,9 +599,11 @@ static int au_ide_probe(struct device *dev)
                goto out;
        }
 
-       /* FIXME:  This might possibly break PCMCIA IDE devices */
-
-       hwif                            = &ide_hwifs[pdev->id];
+       hwif = ide_find_port();
+       if (hwif == NULL) {
+               ret = -ENOENT;
+               goto out;
+       }
 
        memset(&hw, 0, sizeof(hw));
        auide_setup_ports(&hw, ahwif);