aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 07:57:49 -0400
committerTejun Heo <htejun@gmail.com>2006-05-15 07:57:49 -0400
commita0ab51cefc95cb7756c4914603fea2b1a0f813c5 (patch)
tree8ad4be1bd8df959db434f83d33ced04dab211145
parent81952c5497b40ae56835bd0d6537f8c6bdea07e7 (diff)
[PATCH] libata: kill old SCR functions and sata_dev_present()
Kill now unused scr_{read|write|write_flush}() and sata_dev_present(). Signed-off-by: Tejun Heo <htejun@gmail.com>
-rw-r--r--include/linux/libata.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 47b97157995d..cd467cd54473 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -939,28 +939,6 @@ static inline u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq)
939 return status; 939 return status;
940} 940}
941 941
942static inline u32 scr_read(struct ata_port *ap, unsigned int reg)
943{
944 return ap->ops->scr_read(ap, reg);
945}
946
947static inline void scr_write(struct ata_port *ap, unsigned int reg, u32 val)
948{
949 ap->ops->scr_write(ap, reg, val);
950}
951
952static inline void scr_write_flush(struct ata_port *ap, unsigned int reg,
953 u32 val)
954{
955 ap->ops->scr_write(ap, reg, val);
956 (void) ap->ops->scr_read(ap, reg);
957}
958
959static inline unsigned int sata_dev_present(struct ata_port *ap)
960{
961 return ((scr_read(ap, SCR_STATUS) & 0xf) == 0x3) ? 1 : 0;
962}
963
964static inline int ata_try_flush_cache(const struct ata_device *dev) 942static inline int ata_try_flush_cache(const struct ata_device *dev)
965{ 943{
966 return ata_id_wcache_enabled(dev->id) || 944 return ata_id_wcache_enabled(dev->id) ||