diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2014-05-15 09:40:23 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-20 07:23:07 -0400 |
commit | 4cf563c5d97c83d4b2fb3a778dd7d5e362cc3e34 (patch) | |
tree | 2f4febd682fed0794cb06b515dc3b3b1f632f69d /drivers/acpi/device_pm.c | |
parent | f25c0ae2b4c41996c1a6b609132c1788a6eea080 (diff) |
ACPI / PM: Export rest of the subsys PM callbacks
No reason for excluding the remaining ones.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
[rjw: Rebased and exported the new acpi_subsys_complete() too.]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/device_pm.c')
-rw-r--r-- | drivers/acpi/device_pm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 9e5fd9c440b7..49a51277f81d 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c | |||
@@ -928,7 +928,7 @@ EXPORT_SYMBOL_GPL(acpi_subsys_prepare); | |||
928 | * acpi_subsys_complete - Finalize device's resume during system resume. | 928 | * acpi_subsys_complete - Finalize device's resume during system resume. |
929 | * @dev: Device to handle. | 929 | * @dev: Device to handle. |
930 | */ | 930 | */ |
931 | static void acpi_subsys_complete(struct device *dev) | 931 | void acpi_subsys_complete(struct device *dev) |
932 | { | 932 | { |
933 | /* | 933 | /* |
934 | * If the device had been runtime-suspended before the system went into | 934 | * If the device had been runtime-suspended before the system went into |
@@ -938,6 +938,7 @@ static void acpi_subsys_complete(struct device *dev) | |||
938 | if (dev->power.direct_complete) | 938 | if (dev->power.direct_complete) |
939 | pm_request_resume(dev); | 939 | pm_request_resume(dev); |
940 | } | 940 | } |
941 | EXPORT_SYMBOL_GPL(acpi_subsys_complete); | ||
941 | 942 | ||
942 | /** | 943 | /** |
943 | * acpi_subsys_suspend - Run the device driver's suspend callback. | 944 | * acpi_subsys_suspend - Run the device driver's suspend callback. |
@@ -951,6 +952,7 @@ int acpi_subsys_suspend(struct device *dev) | |||
951 | pm_runtime_resume(dev); | 952 | pm_runtime_resume(dev); |
952 | return pm_generic_suspend(dev); | 953 | return pm_generic_suspend(dev); |
953 | } | 954 | } |
955 | EXPORT_SYMBOL_GPL(acpi_subsys_suspend); | ||
954 | 956 | ||
955 | /** | 957 | /** |
956 | * acpi_subsys_suspend_late - Suspend device using ACPI. | 958 | * acpi_subsys_suspend_late - Suspend device using ACPI. |
@@ -996,6 +998,7 @@ int acpi_subsys_freeze(struct device *dev) | |||
996 | pm_runtime_resume(dev); | 998 | pm_runtime_resume(dev); |
997 | return pm_generic_freeze(dev); | 999 | return pm_generic_freeze(dev); |
998 | } | 1000 | } |
1001 | EXPORT_SYMBOL_GPL(acpi_subsys_freeze); | ||
999 | 1002 | ||
1000 | #endif /* CONFIG_PM_SLEEP */ | 1003 | #endif /* CONFIG_PM_SLEEP */ |
1001 | 1004 | ||