diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 63035d71a61a..7162645b816f 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -735,6 +735,7 @@ enable_pm_out: | |||
735 | return /* rc */; /* hopefully we can use 'rc' eventually */ | 735 | return /* rc */; /* hopefully we can use 'rc' eventually */ |
736 | } | 736 | } |
737 | 737 | ||
738 | #ifdef CONFIG_PM | ||
738 | /** | 739 | /** |
739 | * ata_dev_disable_pm - disable SATA interface power management | 740 | * ata_dev_disable_pm - disable SATA interface power management |
740 | * @device - device to enable ipm for | 741 | * @device - device to enable ipm for |
@@ -755,6 +756,7 @@ static void ata_dev_disable_pm(struct ata_device *dev) | |||
755 | if (ap->ops->disable_pm) | 756 | if (ap->ops->disable_pm) |
756 | ap->ops->disable_pm(ap); | 757 | ap->ops->disable_pm(ap); |
757 | } | 758 | } |
759 | #endif /* CONFIG_PM */ | ||
758 | 760 | ||
759 | void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy) | 761 | void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy) |
760 | { | 762 | { |
@@ -764,6 +766,7 @@ void ata_lpm_schedule(struct ata_port *ap, enum link_pm policy) | |||
764 | ata_port_schedule_eh(ap); | 766 | ata_port_schedule_eh(ap); |
765 | } | 767 | } |
766 | 768 | ||
769 | #ifdef CONFIG_PM | ||
767 | static void ata_lpm_enable(struct ata_host *host) | 770 | static void ata_lpm_enable(struct ata_host *host) |
768 | { | 771 | { |
769 | struct ata_link *link; | 772 | struct ata_link *link; |
@@ -789,6 +792,7 @@ static void ata_lpm_disable(struct ata_host *host) | |||
789 | ata_lpm_schedule(ap, ap->pm_policy); | 792 | ata_lpm_schedule(ap, ap->pm_policy); |
790 | } | 793 | } |
791 | } | 794 | } |
795 | #endif /* CONFIG_PM */ | ||
792 | 796 | ||
793 | 797 | ||
794 | /** | 798 | /** |