]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
PM / hibernate: export hibernation_set_ops
authorLeonardo Potenza <leonardo.potenza@intel.com>
Tue, 19 Nov 2013 12:27:41 +0000 (12:27 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 30 Nov 2013 14:12:16 +0000 (15:12 +0100)
To support the ability to implement PM hibernation code as modules
the hibernation_set_ops function requires to be exported.

Similar solution already available for suspend_set_ops
(please refer to commit a5e4fd8783a2bec861ecf1138cdc042269ff59aa).

Signed-off-by: Leonardo Potenza <leonardo.potenza@intel.com>
Signed-off-by: Edwin Verplanke <edwin.verplanke@intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c

index 0121dab83f43d82ddfb620f7423d6c9728f8b01b..bc13d087ea14e3a69074ba67f00d68cb9a8ba4d2 100644 (file)
@@ -82,6 +82,7 @@ void hibernation_set_ops(const struct platform_hibernation_ops *ops)
 
        unlock_system_sleep();
 }
+EXPORT_SYMBOL_GPL(hibernation_set_ops);
 
 static bool entering_platform_hibernation;