diff options
author | Tejun Heo <htejun@gmail.com> | 2007-07-04 18:02:07 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-10 21:27:09 -0400 |
commit | d583bc18812f8da52bf25eef9cd111e5fd46a6ab (patch) | |
tree | 7b886a4ce61b7c0bf8085da5e56b323a9a2fa193 /drivers/ata/sata_via.c | |
parent | 35142ddbf7d81ff3f1d9521611e734b8d5014df2 (diff) | |
download | kernel_samsung_tuna-d583bc18812f8da52bf25eef9cd111e5fd46a6ab.zip kernel_samsung_tuna-d583bc18812f8da52bf25eef9cd111e5fd46a6ab.tar.gz kernel_samsung_tuna-d583bc18812f8da52bf25eef9cd111e5fd46a6ab.tar.bz2 |
libata: simplify PCI legacy SFF host handling
With PCI resource fix up for legacy hosts. We can use the same code
path to allocate IO resources and initialize host for both legacy and
native SFF hosts. Only IRQ requesting needs to be different.
Rename ata_pci_*_native_host() to ata_pci_*_sff_host(), kill all
legacy specific functions and use the renamed functions instead. This
simplifies code a lot.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_via.c')
-rw-r--r-- | drivers/ata/sata_via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index a4c0832..c412447 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c @@ -412,7 +412,7 @@ static int vt6420_prepare_host(struct pci_dev *pdev, struct ata_host **r_host) struct ata_host *host; int rc; - rc = ata_pci_prepare_native_host(pdev, ppi, &host); + rc = ata_pci_prepare_sff_host(pdev, ppi, &host); if (rc) return rc; *r_host = host; |