Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146724
b: refs/heads/master
c: 6459d7b
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 8, 2009
1 parent dca3f43 commit 41f705b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ac5496411b30d41945a996fe7a7fb5abccf2aaa
refs/heads/master: 6459d7bb72e9767bc7d22f2ee44aab35188e4b8a
45 changes: 0 additions & 45 deletions trunk/arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,51 +97,6 @@ static int __init rtc_generic_init(void)
}
module_init(rtc_generic_init);

#ifdef CONFIG_PM
int timer_suspend(struct sys_device *dev, pm_message_t state)
{
struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev);

sys_timer->ops->stop();

return 0;
}

int timer_resume(struct sys_device *dev)
{
struct sys_timer *sys_timer = container_of(dev, struct sys_timer, dev);

sys_timer->ops->start();

return 0;
}
#else
#define timer_suspend NULL
#define timer_resume NULL
#endif

static struct sysdev_class timer_sysclass = {
.name = "timer",
.suspend = timer_suspend,
.resume = timer_resume,
};

static int __init timer_init_sysfs(void)
{
int ret;

if (!sys_timer)
return 0;

ret = sysdev_class_register(&timer_sysclass);
if (ret != 0)
return ret;

sys_timer->dev.cls = &timer_sysclass;
return sysdev_register(&sys_timer->dev);
}
device_initcall(timer_init_sysfs);

void (*board_time_init)(void);

struct clocksource clocksource_sh = {
Expand Down

0 comments on commit 41f705b

Please sign in to comment.