diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 17:36:33 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 17:36:33 +0200 |
commit | 4f7bada25098e076e83ffcd762e3079c19d40140 (patch) | |
tree | e734efb7b2e304cc4c111b30184fdd96df7244bd /drivers | |
parent | 3fd4d205c73951ce6eaaa16fa3158636d1c35a5d (diff) | |
download | linux-3.10-4f7bada25098e076e83ffcd762e3079c19d40140.tar.gz linux-3.10-4f7bada25098e076e83ffcd762e3079c19d40140.tar.bz2 linux-3.10-4f7bada25098e076e83ffcd762e3079c19d40140.zip |
au1xxx-ide: use ide_find_port()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index 9b628248f2f..a8cd0035936 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c @@ -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); |