aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-snvs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 16:00:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 16:00:36 -0500
commit78a45c6f067824cf5d0a9fedea7339ac2e28603c (patch)
treeb4f78c8b6b9059ddace0a18c11629b8d2045f793 /drivers/rtc/rtc-snvs.c
parentf96fe225677b3efb74346ebd56fafe3997b02afa (diff)
parent29d293b6007b91a4463f05bc8d0b26e0e65c5816 (diff)
Merge branch 'akpm' (second patch-bomb from Andrew)
Merge second patchbomb from Andrew Morton: - the rest of MM - misc fs fixes - add execveat() syscall - new ratelimit feature for fault-injection - decompressor updates - ipc/ updates - fallocate feature creep - fsnotify cleanups - a few other misc things * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (99 commits) cgroups: Documentation: fix trivial typos and wrong paragraph numberings parisc: percpu: update comments referring to __get_cpu_var percpu: update local_ops.txt to reflect this_cpu operations percpu: remove __get_cpu_var and __raw_get_cpu_var macros fsnotify: remove destroy_list from fsnotify_mark fsnotify: unify inode and mount marks handling fallocate: create FAN_MODIFY and IN_MODIFY events mm/cma: make kmemleak ignore CMA regions slub: fix cpuset check in get_any_partial slab: fix cpuset check in fallback_alloc shmdt: use i_size_read() instead of ->i_size ipc/shm.c: fix overly aggressive shmdt() when calls span multiple segments ipc/msg: increase MSGMNI, remove scaling ipc/sem.c: increase SEMMSL, SEMMNI, SEMOPM ipc/sem.c: change memory barrier in sem_lock() to smp_rmb() lib/decompress.c: consistency of compress formats for kernel image decompress_bunzip2: off by one in get_next_block() usr/Kconfig: make initrd compression algorithm selection not expert fault-inject: add ratelimit option ratelimit: add initialization macro ...
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
-rw-r--r--drivers/rtc/rtc-snvs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index 2cd8ffe5c698..942b267c6271 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -344,13 +344,20 @@ static int snvs_rtc_resume(struct device *dev)
344 344
345 return 0; 345 return 0;
346} 346}
347#endif
348 347
349static const struct dev_pm_ops snvs_rtc_pm_ops = { 348static const struct dev_pm_ops snvs_rtc_pm_ops = {
350 .suspend_noirq = snvs_rtc_suspend, 349 .suspend_noirq = snvs_rtc_suspend,
351 .resume_noirq = snvs_rtc_resume, 350 .resume_noirq = snvs_rtc_resume,
352}; 351};
353 352
353#define SNVS_RTC_PM_OPS (&snvs_rtc_pm_ops)
354
355#else
356
357#define SNVS_RTC_PM_OPS NULL
358
359#endif
360
354static const struct of_device_id snvs_dt_ids[] = { 361static const struct of_device_id snvs_dt_ids[] = {
355 { .compatible = "fsl,sec-v4.0-mon-rtc-lp", }, 362 { .compatible = "fsl,sec-v4.0-mon-rtc-lp", },
356 { /* sentinel */ } 363 { /* sentinel */ }
@@ -361,7 +368,7 @@ static struct platform_driver snvs_rtc_driver = {
361 .driver = { 368 .driver = {
362 .name = "snvs_rtc", 369 .name = "snvs_rtc",
363 .owner = THIS_MODULE, 370 .owner = THIS_MODULE,
364 .pm = &snvs_rtc_pm_ops, 371 .pm = SNVS_RTC_PM_OPS,
365 .of_match_table = snvs_dt_ids, 372 .of_match_table = snvs_dt_ids,
366 }, 373 },
367 .probe = snvs_rtc_probe, 374 .probe = snvs_rtc_probe,