aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/mips
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/mips')
-rw-r--r--drivers/ide/mips/au1xxx-ide.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c
index 9b628248f2f4..a8cd0035936d 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)
599 goto out; 599 goto out;
600 } 600 }
601 601
602 /* FIXME: This might possibly break PCMCIA IDE devices */ 602 hwif = ide_find_port();
603 603 if (hwif == NULL) {
604 hwif = &ide_hwifs[pdev->id]; 604 ret = -ENOENT;
605 goto out;
606 }
605 607
606 memset(&hw, 0, sizeof(hw)); 608 memset(&hw, 0, sizeof(hw));
607 auide_setup_ports(&hw, ahwif); 609 auide_setup_ports(&hw, ahwif);