提交 1992a5ed 编写于 作者: S Stephen Rothwell 提交者: Jeff Garzik

libata: suppress two warnings

drivers/ata/libata-core.c:768: warning: 'ata_lpm_enable' defined but not used
drivers/ata/libata-core.c:784: warning: 'ata_lpm_disable' defined but not used
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 aa91c725
...@@ -735,6 +735,7 @@ void ata_dev_enable_pm(struct ata_device *dev, enum link_pm policy) ...@@ -735,6 +735,7 @@ void ata_dev_enable_pm(struct ata_device *dev, enum link_pm policy)
return /* rc */; /* hopefully we can use 'rc' eventually */ return /* rc */; /* hopefully we can use 'rc' eventually */
} }
#ifdef CONFIG_PM
/** /**
* ata_dev_disable_pm - disable SATA interface power management * ata_dev_disable_pm - disable SATA interface power management
* @device - device to enable ipm for * @device - device to enable ipm for
...@@ -755,6 +756,7 @@ static void ata_dev_disable_pm(struct ata_device *dev) ...@@ -755,6 +756,7 @@ static void ata_dev_disable_pm(struct ata_device *dev)
if (ap->ops->disable_pm) if (ap->ops->disable_pm)
ap->ops->disable_pm(ap); ap->ops->disable_pm(ap);
} }
#endif /* CONFIG_PM */
void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy) void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy)
{ {
...@@ -764,6 +766,7 @@ void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy) ...@@ -764,6 +766,7 @@ void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy)
ata_port_schedule_eh(ap); ata_port_schedule_eh(ap);
} }
#ifdef CONFIG_PM
static void ata_lpm_enable(struct ata_host *host) static void ata_lpm_enable(struct ata_host *host)
{ {
struct ata_link *link; struct ata_link *link;
...@@ -789,6 +792,7 @@ static void ata_lpm_disable(struct ata_host *host) ...@@ -789,6 +792,7 @@ static void ata_lpm_disable(struct ata_host *host)
ata_lpm_schedule(ap, ap->pm_policy); ata_lpm_schedule(ap, ap->pm_policy);
} }
} }
#endif /* CONFIG_PM */
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册