diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 11:36:33 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 11:36:33 -0400 |
| commit | 4f7bada25098e076e83ffcd762e3079c19d40140 (patch) | |
| tree | e734efb7b2e304cc4c111b30184fdd96df7244bd | |
| parent | 3fd4d205c73951ce6eaaa16fa3158636d1c35a5d (diff) | |
au1xxx-ide: use ide_find_port()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
| -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 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); |
