diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:10:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:10:57 -0500 |
commit | eb59c505f8a5906ad2e053d14fab50eb8574fd6f (patch) | |
tree | c6e875adc12b481b916e847e8f80b8881a0fb02c /drivers/base/platform.c | |
parent | 1619ed8f60959829d070d8f39cd2f8ca0e7135ce (diff) | |
parent | c233523b3d392e530033a7587d7970dc62a02361 (diff) |
Merge branch 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
* 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (76 commits)
PM / Hibernate: Implement compat_ioctl for /dev/snapshot
PM / Freezer: fix return value of freezable_schedule_timeout_killable()
PM / shmobile: Allow the A4R domain to be turned off at run time
PM / input / touchscreen: Make st1232 use device PM QoS constraints
PM / QoS: Introduce dev_pm_qos_add_ancestor_request()
PM / shmobile: Remove the stay_on flag from SH7372's PM domains
PM / shmobile: Don't include SH7372's INTCS in syscore suspend/resume
PM / shmobile: Add support for the sh7372 A4S power domain / sleep mode
PM: Drop generic_subsys_pm_ops
PM / Sleep: Remove forward-only callbacks from AMBA bus type
PM / Sleep: Remove forward-only callbacks from platform bus type
PM: Run the driver callback directly if the subsystem one is not there
PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers
PM/Devfreq: Add Exynos4-bus device DVFS driver for Exynos4210/4212/4412.
PM / Sleep: Merge internal functions in generic_ops.c
PM / Sleep: Simplify generic system suspend callbacks
PM / Hibernate: Remove deprecated hibernation snapshot ioctls
PM / Sleep: Fix freezer failures due to racy usermodehelper_is_disabled()
ARM: S3C64XX: Implement basic power domain support
PM / shmobile: Use common always on power domain governor
...
Fix up trivial conflict in fs/xfs/xfs_buf.c due to removal of unused
XBT_FORCE_SLEEP bit
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a7c06374062e..f0c605e99ade 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -700,25 +700,6 @@ static int platform_legacy_resume(struct device *dev) | |||
700 | return ret; | 700 | return ret; |
701 | } | 701 | } |
702 | 702 | ||
703 | int platform_pm_prepare(struct device *dev) | ||
704 | { | ||
705 | struct device_driver *drv = dev->driver; | ||
706 | int ret = 0; | ||
707 | |||
708 | if (drv && drv->pm && drv->pm->prepare) | ||
709 | ret = drv->pm->prepare(dev); | ||
710 | |||
711 | return ret; | ||
712 | } | ||
713 | |||
714 | void platform_pm_complete(struct device *dev) | ||
715 | { | ||
716 | struct device_driver *drv = dev->driver; | ||
717 | |||
718 | if (drv && drv->pm && drv->pm->complete) | ||
719 | drv->pm->complete(dev); | ||
720 | } | ||
721 | |||
722 | #endif /* CONFIG_PM_SLEEP */ | 703 | #endif /* CONFIG_PM_SLEEP */ |
723 | 704 | ||
724 | #ifdef CONFIG_SUSPEND | 705 | #ifdef CONFIG_SUSPEND |
@@ -741,22 +722,6 @@ int platform_pm_suspend(struct device *dev) | |||
741 | return ret; | 722 | return ret; |
742 | } | 723 | } |
743 | 724 | ||
744 | int platform_pm_suspend_noirq(struct device *dev) | ||
745 | { | ||
746 | struct device_driver *drv = dev->driver; | ||
747 | int ret = 0; | ||
748 | |||
749 | if (!drv) | ||
750 | return 0; | ||
751 | |||
752 | if (drv->pm) { | ||
753 | if (drv->pm->suspend_noirq) | ||
754 | ret = drv->pm->suspend_noirq(dev); | ||
755 | } | ||
756 | |||
757 | return ret; | ||
758 | } | ||
759 | |||
760 | int platform_pm_resume(struct device *dev) | 725 | int platform_pm_resume(struct device *dev) |
761 | { | 726 | { |
762 | struct device_driver *drv = dev->driver; | 727 | struct device_driver *drv = dev->driver; |
@@ -775,22 +740,6 @@ int platform_pm_resume(struct device *dev) | |||
775 | return ret; | 740 | return ret; |
776 | } | 741 | } |
777 | 742 | ||
778 | int platform_pm_resume_noirq(struct device *dev) | ||
779 | { | ||
780 | struct device_driver *drv = dev->driver; | ||
781 | int ret = 0; | ||
782 | |||
783 | if (!drv) | ||
784 | return 0; | ||
785 | |||
786 | if (drv->pm) { | ||
787 | if (drv->pm->resume_noirq) | ||
788 | ret = drv->pm->resume_noirq(dev); | ||
789 | } | ||
790 | |||
791 | return ret; | ||
792 | } | ||
793 | |||
794 | #endif /* CONFIG_SUSPEND */ | 743 | #endif /* CONFIG_SUSPEND */ |
795 | 744 | ||
796 | #ifdef CONFIG_HIBERNATE_CALLBACKS | 745 | #ifdef CONFIG_HIBERNATE_CALLBACKS |
@@ -813,22 +762,6 @@ int platform_pm_freeze(struct device *dev) | |||
813 | return ret; | 762 | return ret; |
814 | } | 763 | } |
815 | 764 | ||
816 | int platform_pm_freeze_noirq(struct device *dev) | ||
817 | { | ||
818 | struct device_driver *drv = dev->driver; | ||
819 | int ret = 0; | ||
820 | |||
821 | if (!drv) | ||
822 | return 0; | ||
823 | |||
824 | if (drv->pm) { | ||
825 | if (drv->pm->freeze_noirq) | ||
826 | ret = drv->pm->freeze_noirq(dev); | ||
827 | } | ||
828 | |||
829 | return ret; | ||
830 | } | ||
831 | |||
832 | int platform_pm_thaw(struct device *dev) | 765 | int platform_pm_thaw(struct device *dev) |
833 | { | 766 | { |
834 | struct device_driver *drv = dev->driver; | 767 | struct device_driver *drv = dev->driver; |
@@ -847,22 +780,6 @@ int platform_pm_thaw(struct device *dev) | |||
847 | return ret; | 780 | return ret; |
848 | } | 781 | } |
849 | 782 | ||
850 | int platform_pm_thaw_noirq(struct device *dev) | ||
851 | { | ||
852 | struct device_driver *drv = dev->driver; | ||
853 | int ret = 0; | ||
854 | |||
855 | if (!drv) | ||
856 | return 0; | ||
857 | |||
858 | if (drv->pm) { | ||
859 | if (drv->pm->thaw_noirq) | ||
860 | ret = drv->pm->thaw_noirq(dev); | ||
861 | } | ||
862 | |||
863 | return ret; | ||
864 | } | ||
865 | |||
866 | int platform_pm_poweroff(struct device *dev) | 783 | int platform_pm_poweroff(struct device *dev) |
867 | { | 784 | { |
868 | struct device_driver *drv = dev->driver; | 785 | struct device_driver *drv = dev->driver; |
@@ -881,22 +798,6 @@ int platform_pm_poweroff(struct device *dev) | |||
881 | return ret; | 798 | return ret; |
882 | } | 799 | } |
883 | 800 | ||
884 | int platform_pm_poweroff_noirq(struct device *dev) | ||
885 | { | ||
886 | struct device_driver *drv = dev->driver; | ||
887 | int ret = 0; | ||
888 | |||
889 | if (!drv) | ||
890 | return 0; | ||
891 | |||
892 | if (drv->pm) { | ||
893 | if (drv->pm->poweroff_noirq) | ||
894 | ret = drv->pm->poweroff_noirq(dev); | ||
895 | } | ||
896 | |||
897 | return ret; | ||
898 | } | ||
899 | |||
900 | int platform_pm_restore(struct device *dev) | 801 | int platform_pm_restore(struct device *dev) |
901 | { | 802 | { |
902 | struct device_driver *drv = dev->driver; | 803 | struct device_driver *drv = dev->driver; |
@@ -915,22 +816,6 @@ int platform_pm_restore(struct device *dev) | |||
915 | return ret; | 816 | return ret; |
916 | } | 817 | } |
917 | 818 | ||
918 | int platform_pm_restore_noirq(struct device *dev) | ||
919 | { | ||
920 | struct device_driver *drv = dev->driver; | ||
921 | int ret = 0; | ||
922 | |||
923 | if (!drv) | ||
924 | return 0; | ||
925 | |||
926 | if (drv->pm) { | ||
927 | if (drv->pm->restore_noirq) | ||
928 | ret = drv->pm->restore_noirq(dev); | ||
929 | } | ||
930 | |||
931 | return ret; | ||
932 | } | ||
933 | |||
934 | #endif /* CONFIG_HIBERNATE_CALLBACKS */ | 819 | #endif /* CONFIG_HIBERNATE_CALLBACKS */ |
935 | 820 | ||
936 | static const struct dev_pm_ops platform_dev_pm_ops = { | 821 | static const struct dev_pm_ops platform_dev_pm_ops = { |