Skip to content

Commit

Permalink
au1xxx-ide: use ide_find_port()
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent 3fd4d20 commit 4f7bada
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/ide/mips/au1xxx-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f7bada

Please sign in to comment.