summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-03-25 14:16:44 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 21:44:18 +0200
commit6fd36390117f7844ad147377878ddb52088f583a (patch)
treec25d9a8357ff173ce46eb057cc50370b87b9cca8 /include
parentlibata: kill ata_chk_status() call from ata_dev_configure() (diff)
downloadlinux-6fd36390117f7844ad147377878ddb52088f583a.tar.xz
linux-6fd36390117f7844ad147377878ddb52088f583a.zip
libata: kill ata_chk_status()
ata_chk_status() just calls ops->check_status and it only adds confusion with other status functions. Kill it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 53b8db05a1fb..61a7f8d06971 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1401,11 +1401,6 @@ extern int ata_pci_init_one(struct pci_dev *pdev,
struct scsi_host_template *sht, void *host_priv);
#endif /* CONFIG_PCI */
-static inline u8 ata_chk_status(struct ata_port *ap)
-{
- return ap->ops->check_status(ap);
-}
-
/**
* ata_pause - Flush writes and pause 400 nanoseconds.
* @ap: Port to wait for.
@@ -1439,7 +1434,7 @@ static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits,
do {
udelay(10);
- status = ata_chk_status(ap);
+ status = ap->ops->check_status(ap);
max--;
} while (status != 0xff && (status & bits) && (max > 0));