diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 20:12:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 20:12:13 -0400 |
commit | 7f0ef0267e20d62d45d527911a993b1e998f4968 (patch) | |
tree | de51abc7da5903f59d83e23937f22420164c9477 /drivers/rtc/class.c | |
parent | 862f0012549110d6f2586bf54b52ed4540cbff3a (diff) | |
parent | 9307c29524502c21f0e8a6d96d850b2f5bc0bd9a (diff) |
Merge branch 'akpm' (updates from Andrew Morton)
Merge first patch-bomb from Andrew Morton:
- various misc bits
- I'm been patchmonkeying ocfs2 for a while, as Joel and Mark have been
distracted. There has been quite a bit of activity.
- About half the MM queue
- Some backlight bits
- Various lib/ updates
- checkpatch updates
- zillions more little rtc patches
- ptrace
- signals
- exec
- procfs
- rapidio
- nbd
- aoe
- pps
- memstick
- tools/testing/selftests updates
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (445 commits)
tools/testing/selftests: don't assume the x bit is set on scripts
selftests: add .gitignore for kcmp
selftests: fix clean target in kcmp Makefile
selftests: add .gitignore for vm
selftests: add hugetlbfstest
self-test: fix make clean
selftests: exit 1 on failure
kernel/resource.c: remove the unneeded assignment in function __find_resource
aio: fix wrong comment in aio_complete()
drivers/w1/slaves/w1_ds2408.c: add magic sequence to disable P0 test mode
drivers/memstick/host/r592.c: convert to module_pci_driver
drivers/memstick/host/jmb38x_ms: convert to module_pci_driver
pps-gpio: add device-tree binding and support
drivers/pps/clients/pps-gpio.c: convert to module_platform_driver
drivers/pps/clients/pps-gpio.c: convert to devm_* helpers
drivers/parport/share.c: use kzalloc
Documentation/accounting/getdelays.c: avoid strncpy in accounting tool
aoe: update internal version number to v83
aoe: update copyright date
aoe: perform I/O completions in parallel
...
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r-- | drivers/rtc/class.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 66385402d20e..02426812bebc 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c | |||
@@ -38,7 +38,7 @@ static void rtc_device_release(struct device *dev) | |||
38 | int rtc_hctosys_ret = -ENODEV; | 38 | int rtc_hctosys_ret = -ENODEV; |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #if defined(CONFIG_PM) && defined(CONFIG_RTC_HCTOSYS_DEVICE) | 41 | #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_RTC_HCTOSYS_DEVICE) |
42 | /* | 42 | /* |
43 | * On suspend(), measure the delta between one RTC and the | 43 | * On suspend(), measure the delta between one RTC and the |
44 | * system's wall clock; restore it on resume(). | 44 | * system's wall clock; restore it on resume(). |
@@ -47,7 +47,7 @@ int rtc_hctosys_ret = -ENODEV; | |||
47 | static struct timespec old_rtc, old_system, old_delta; | 47 | static struct timespec old_rtc, old_system, old_delta; |
48 | 48 | ||
49 | 49 | ||
50 | static int rtc_suspend(struct device *dev, pm_message_t mesg) | 50 | static int rtc_suspend(struct device *dev) |
51 | { | 51 | { |
52 | struct rtc_device *rtc = to_rtc_device(dev); | 52 | struct rtc_device *rtc = to_rtc_device(dev); |
53 | struct rtc_time tm; | 53 | struct rtc_time tm; |
@@ -135,9 +135,10 @@ static int rtc_resume(struct device *dev) | |||
135 | return 0; | 135 | return 0; |
136 | } | 136 | } |
137 | 137 | ||
138 | static SIMPLE_DEV_PM_OPS(rtc_class_dev_pm_ops, rtc_suspend, rtc_resume); | ||
139 | #define RTC_CLASS_DEV_PM_OPS (&rtc_class_dev_pm_ops) | ||
138 | #else | 140 | #else |
139 | #define rtc_suspend NULL | 141 | #define RTC_CLASS_DEV_PM_OPS NULL |
140 | #define rtc_resume NULL | ||
141 | #endif | 142 | #endif |
142 | 143 | ||
143 | 144 | ||
@@ -336,8 +337,7 @@ static int __init rtc_init(void) | |||
336 | pr_err("couldn't create class\n"); | 337 | pr_err("couldn't create class\n"); |
337 | return PTR_ERR(rtc_class); | 338 | return PTR_ERR(rtc_class); |
338 | } | 339 | } |
339 | rtc_class->suspend = rtc_suspend; | 340 | rtc_class->pm = RTC_CLASS_DEV_PM_OPS; |
340 | rtc_class->resume = rtc_resume; | ||
341 | rtc_dev_init(); | 341 | rtc_dev_init(); |
342 | rtc_sysfs_init(rtc_class); | 342 | rtc_sysfs_init(rtc_class); |
343 | return 0; | 343 | return 0; |