~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-s5pv210/pm.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include <linux/init.h>
18
18
#include <linux/suspend.h>
 
19
#include <linux/syscore_ops.h>
19
20
#include <linux/io.h>
20
21
 
21
22
#include <plat/cpu.h>
140
141
        return 0;
141
142
}
142
143
 
143
 
static int s5pv210_pm_resume(struct sys_device *dev)
 
144
static struct sysdev_driver s5pv210_pm_driver = {
 
145
        .add            = s5pv210_pm_add,
 
146
};
 
147
 
 
148
static __init int s5pv210_pm_drvinit(void)
 
149
{
 
150
        return sysdev_driver_register(&s5pv210_sysclass, &s5pv210_pm_driver);
 
151
}
 
152
arch_initcall(s5pv210_pm_drvinit);
 
153
 
 
154
static void s5pv210_pm_resume(void)
144
155
{
145
156
        u32 tmp;
146
157
 
150
161
        __raw_writel(tmp , S5P_OTHERS);
151
162
 
152
163
        s3c_pm_do_restore_core(s5pv210_core_save, ARRAY_SIZE(s5pv210_core_save));
153
 
 
154
 
        return 0;
155
164
}
156
165
 
157
 
static struct sysdev_driver s5pv210_pm_driver = {
158
 
        .add            = s5pv210_pm_add,
 
166
static struct syscore_ops s5pv210_pm_syscore_ops = {
159
167
        .resume         = s5pv210_pm_resume,
160
168
};
161
169
 
162
 
static __init int s5pv210_pm_drvinit(void)
 
170
static __init int s5pv210_pm_syscore_init(void)
163
171
{
164
 
        return sysdev_driver_register(&s5pv210_sysclass, &s5pv210_pm_driver);
 
172
        register_syscore_ops(&s5pv210_pm_syscore_ops);
 
173
        return 0;
165
174
}
166
 
arch_initcall(s5pv210_pm_drvinit);
 
175
arch_initcall(s5pv210_pm_syscore_init);