diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-11-23 04:07:48 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-12-18 08:02:03 -0500 |
commit | aae8224ddd72e045bb92eaf6b73b89282c771c69 (patch) | |
tree | e0176e31c5185d8f180f607a252da9061ff0a63b /arch/arm/mach-pxa/clock-pxa2xx.c | |
parent | f113fe4e844be15394edcbc32b0ec196cdd0a0ff (diff) |
ARM: pxa: introduce pxa3xx_clock_sysclass for clock suspend/resume
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/clock-pxa2xx.c')
-rw-r--r-- | arch/arm/mach-pxa/clock-pxa2xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/clock-pxa2xx.c b/arch/arm/mach-pxa/clock-pxa2xx.c index 66eb531ae29b..1ce090448493 100644 --- a/arch/arm/mach-pxa/clock-pxa2xx.c +++ b/arch/arm/mach-pxa/clock-pxa2xx.c | |||
@@ -54,3 +54,11 @@ struct sysdev_class pxa2xx_clock_sysclass = { | |||
54 | .suspend = pxa2xx_clock_suspend, | 54 | .suspend = pxa2xx_clock_suspend, |
55 | .resume = pxa2xx_clock_resume, | 55 | .resume = pxa2xx_clock_resume, |
56 | }; | 56 | }; |
57 | |||
58 | static int __init pxa2xx_clock_init(void) | ||
59 | { | ||
60 | if (cpu_is_pxa2xx()) | ||
61 | return sysdev_class_register(&pxa2xx_clock_sysclass); | ||
62 | return 0; | ||
63 | } | ||
64 | postcore_initcall(pxa2xx_clock_init); | ||