au1xxx-ide: use ide_find_port()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
3fd4d205c7
commit
4f7bada250
1 changed files with 5 additions and 3 deletions
|
@ -599,9 +599,11 @@ static int au_ide_probe(struct device *dev)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: This might possibly break PCMCIA IDE devices */
|
hwif = ide_find_port();
|
||||||
|
if (hwif == NULL) {
|
||||||
hwif = &ide_hwifs[pdev->id];
|
ret = -ENOENT;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&hw, 0, sizeof(hw));
|
memset(&hw, 0, sizeof(hw));
|
||||||
auide_setup_ports(&hw, ahwif);
|
auide_setup_ports(&hw, ahwif);
|
||||||
|
|
Loading…
Reference in a new issue