summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-24 14:49:51 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-24 14:49:51 +0100
commit6f53b9349273a13ef02d1a5ad7e24ab1db900e7a (patch)
tree259df3872b36793f75e9dbe02dcd22b4b9fc6106 /drivers
parent7925180aee227f3de7af4a8cbad1c4b203a9132e (diff)
arm: tegra: ahci/sata: fix driver build
The following two functions seem to be obsolete therefore commented resp. ifdefed out for now: port_idle_status tegra_ahci_is_port_slumber() tegra_ahci_are_all_ports_slumber()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/ahci-tegra.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c
index 5c58da143c5a..df524ff72cc8 100644
--- a/drivers/ata/ahci-tegra.c
+++ b/drivers/ata/ahci-tegra.c
@@ -258,9 +258,9 @@ static int tegra_ahci_controller_resume(struct platform_device *pdev);
static int tegra_ahci_suspend(struct platform_device *pdev, pm_message_t mesg);
static int tegra_ahci_resume(struct platform_device *pdev);
static enum port_idle_status tegra_ahci_is_port_idle(struct ata_port *ap);
-static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap);
+//static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap);
static bool tegra_ahci_are_all_ports_idle(struct ata_host *host);
-static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host);
+//static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host);
#ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE
static unsigned int tegra_ahci_qc_issue(struct ata_queued_cmd *qc);
static int tegra_ahci_hardreset(struct ata_link *link, unsigned int *class,
@@ -1623,6 +1623,7 @@ static enum port_idle_status tegra_ahci_is_port_idle(struct ata_port *ap)
return PORT_IS_IDLE;
}
+#if 0
static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap)
{
void __iomem *port_mmio = ahci_port_base(ap);
@@ -1637,6 +1638,7 @@ static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap)
return PORT_IS_SLUMBER;
return PORT_IS_IDLE_NOT_SLUMBER;
}
+#endif
/* check if all supported ports are idle (no outstanding commands) */
static bool tegra_ahci_are_all_ports_idle(struct ata_host *host)
@@ -1651,6 +1653,7 @@ static bool tegra_ahci_are_all_ports_idle(struct ata_host *host)
return true;
}
+#if 0
/* check if all supported ports are in slumber */
static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host)
{ int i;
@@ -1663,6 +1666,7 @@ static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host)
}
return true;
}
+#endif
#ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE
static void tegra_ahci_to_add_idle_timer(struct ata_host *host)