diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-22 16:36:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-22 16:36:52 -0400 |
commit | 7100e505b76b4e2efd88b2459d1a932214e29f8a (patch) | |
tree | a8eae8687dc1511c89463b1eb93c8349a7471ab3 /drivers/block | |
parent | cb47c1831fa406c964468b259f2082c16cc3f757 (diff) | |
parent | 75a4161a58dd157a2bd2dc8e9986e45b62ac46cf (diff) |
Merge tag 'pm-for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management updates from Rafael Wysocki:
- ACPI conversion to PM handling based on struct dev_pm_ops.
- Conversion of a number of platform drivers to PM handling based on
struct dev_pm_ops and removal of empty legacy PM callbacks from a
couple of PCI drivers.
- Suspend-to-both for in-kernel hibernation from Bojan Smojver.
- cpuidle fixes and cleanups from ShuoX Liu, Daniel Lezcano and Preeti
Murthy.
- cpufreq bug fixes from Jonghwa Lee and Stephen Boyd.
- Suspend and hibernate fixes from Srivatsa Bhat and Colin Cross.
- Generic PM domains framework updates.
- RTC CMOS wakeup signaling update from Paul Fox.
- sparse warnings fixes from Sachin Kamat.
- Build warnings fixes for the generic PM domains framework and PM
sysfs code.
- sysfs switch for printing device suspend times from Sameer Nanda.
- Documentation fix from Oskar Schirmer.
* tag 'pm-for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (70 commits)
cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch
EXYNOS: bugfix on retrieving old_index from freqs.old
PM / Sleep: call early resume handlers when suspend_noirq fails
PM / QoS: Use NULL pointer instead of plain integer in qos.c
PM / QoS: Use NULL pointer instead of plain integer in pm_qos.h
PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock
PM / Sleep: Add missing static storage class specifiers in main.c
cpuilde / ACPI: remove time from acpi_processor_cx structure
cpuidle / ACPI: remove usage from acpi_processor_cx structure
cpuidle / ACPI : remove latency_ticks from acpi_processor_cx structure
rtc-cmos: report wakeups from interrupt handler
PM / Sleep: Fix build warning in sysfs.c for CONFIG_PM_SLEEP unset
PM / Domains: Fix build warning for CONFIG_PM_RUNTIME unset
olpc-xo15-sci: Use struct dev_pm_ops for power management
PM / Domains: Replace plain integer with NULL pointer in domain.c file
PM / Domains: Add missing static storage class specifier in domain.c file
PM / crypto / ux500: Use struct dev_pm_ops for power management
PM / IPMI: Remove empty legacy PCI PM callbacks
tpm_nsc: Use struct dev_pm_ops for power management
tpm_tis: Use struct dev_pm_ops for power management
...
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/mg_disk.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/block/mg_disk.c b/drivers/block/mg_disk.c index 76fa3deaee84..1788f491e0fb 100644 --- a/drivers/block/mg_disk.c +++ b/drivers/block/mg_disk.c | |||
@@ -780,9 +780,9 @@ static const struct block_device_operations mg_disk_ops = { | |||
780 | .getgeo = mg_getgeo | 780 | .getgeo = mg_getgeo |
781 | }; | 781 | }; |
782 | 782 | ||
783 | static int mg_suspend(struct platform_device *plat_dev, pm_message_t state) | 783 | static int mg_suspend(struct device *dev) |
784 | { | 784 | { |
785 | struct mg_drv_data *prv_data = plat_dev->dev.platform_data; | 785 | struct mg_drv_data *prv_data = dev->platform_data; |
786 | struct mg_host *host = prv_data->host; | 786 | struct mg_host *host = prv_data->host; |
787 | 787 | ||
788 | if (mg_wait(host, MG_STAT_READY, MG_TMAX_CONF_TO_CMD)) | 788 | if (mg_wait(host, MG_STAT_READY, MG_TMAX_CONF_TO_CMD)) |
@@ -804,9 +804,9 @@ static int mg_suspend(struct platform_device *plat_dev, pm_message_t state) | |||
804 | return 0; | 804 | return 0; |
805 | } | 805 | } |
806 | 806 | ||
807 | static int mg_resume(struct platform_device *plat_dev) | 807 | static int mg_resume(struct device *dev) |
808 | { | 808 | { |
809 | struct mg_drv_data *prv_data = plat_dev->dev.platform_data; | 809 | struct mg_drv_data *prv_data = dev->platform_data; |
810 | struct mg_host *host = prv_data->host; | 810 | struct mg_host *host = prv_data->host; |
811 | 811 | ||
812 | if (mg_wait(host, MG_STAT_READY, MG_TMAX_CONF_TO_CMD)) | 812 | if (mg_wait(host, MG_STAT_READY, MG_TMAX_CONF_TO_CMD)) |
@@ -825,6 +825,8 @@ static int mg_resume(struct platform_device *plat_dev) | |||
825 | return 0; | 825 | return 0; |
826 | } | 826 | } |
827 | 827 | ||
828 | static SIMPLE_DEV_PM_OPS(mg_pm, mg_suspend, mg_resume); | ||
829 | |||
828 | static int mg_probe(struct platform_device *plat_dev) | 830 | static int mg_probe(struct platform_device *plat_dev) |
829 | { | 831 | { |
830 | struct mg_host *host; | 832 | struct mg_host *host; |
@@ -1074,11 +1076,10 @@ static int mg_remove(struct platform_device *plat_dev) | |||
1074 | static struct platform_driver mg_disk_driver = { | 1076 | static struct platform_driver mg_disk_driver = { |
1075 | .probe = mg_probe, | 1077 | .probe = mg_probe, |
1076 | .remove = mg_remove, | 1078 | .remove = mg_remove, |
1077 | .suspend = mg_suspend, | ||
1078 | .resume = mg_resume, | ||
1079 | .driver = { | 1079 | .driver = { |
1080 | .name = MG_DEV_NAME, | 1080 | .name = MG_DEV_NAME, |
1081 | .owner = THIS_MODULE, | 1081 | .owner = THIS_MODULE, |
1082 | .pm = &mg_pm, | ||
1082 | } | 1083 | } |
1083 | }; | 1084 | }; |
1084 | 1085 | ||