diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-08 03:47:48 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-08 03:47:48 -0400 |
commit | 6459d7bb72e9767bc7d22f2ee44aab35188e4b8a (patch) | |
tree | 1d89886acfbc17641070d1e2d41eb254d0802925 /arch/sh/kernel/time.c | |
parent | 5ac5496411b30d41945a996fe7a7fb5abccf2aaa (diff) |
sh: Kill off dead timer sysclass pm hooks.
With the conversion to generic clockevents these are completely unused,
so just kill it off.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/time.c')
-rw-r--r-- | arch/sh/kernel/time.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index f4c304adec42..c26576a5a454 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -97,51 +97,6 @@ static int __init rtc_generic_init(void) | |||
97 | } | 97 | } |
98 | module_init(rtc_generic_init); | 98 | module_init(rtc_generic_init); |
99 | 99 | ||
100 | #ifdef CONFIG_PM | ||
101 | int timer_suspend(struct sys_device *dev, pm_message_t state) | ||
102 | { | ||
103 | struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev); | ||
104 | |||
105 | sys_timer->ops->stop(); | ||
106 | |||
107 | return 0; | ||
108 | } | ||
109 | |||
110 | int timer_resume(struct sys_device *dev) | ||
111 | { | ||
112 | struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev); | ||
113 | |||
114 | sys_timer->ops->start(); | ||
115 | |||
116 | return 0; | ||
117 | } | ||
118 | #else | ||
119 | #define timer_suspend NULL | ||
120 | #define timer_resume NULL | ||
121 | #endif | ||
122 | |||
123 | static struct sysdev_class timer_sysclass = { | ||
124 | .name = "timer", | ||
125 | .suspend = timer_suspend, | ||
126 | .resume = timer_resume, | ||
127 | }; | ||
128 | |||
129 | static int __init timer_init_sysfs(void) | ||
130 | { | ||
131 | int ret; | ||
132 | |||
133 | if (!sys_timer) | ||
134 | return 0; | ||
135 | |||
136 | ret = sysdev_class_register(&timer_sysclass); | ||
137 | if (ret != 0) | ||
138 | return ret; | ||
139 | |||
140 | sys_timer->dev.cls = &timer_sysclass; | ||
141 | return sysdev_register(&sys_timer->dev); | ||
142 | } | ||
143 | device_initcall(timer_init_sysfs); | ||
144 | |||
145 | void (*board_time_init)(void); | 100 | void (*board_time_init)(void); |
146 | 101 | ||
147 | struct clocksource clocksource_sh = { | 102 | struct clocksource clocksource_sh = { |