]> git.baikalelectronics.ru Git - kernel.git/commit
libata: simplify PCI legacy SFF host handling
authorTejun Heo <htejun@gmail.com>
Wed, 4 Jul 2007 09:02:07 +0000 (18:02 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Jul 2007 01:27:09 +0000 (21:27 -0400)
commitdc41885cdf33e4daa66af29daf2201d140c12228
tree7b886a4ce61b7c0bf8085da5e56b323a9a2fa193
parentf95b24298be13e291d6c8ec9b8d15b5052a18d3f
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>
drivers/ata/libata-core.c
drivers/ata/libata-sff.c
drivers/ata/sata_nv.c
drivers/ata/sata_sis.c
drivers/ata/sata_uli.c
drivers/ata/sata_via.c
include/linux/libata.h