diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 05:05:42 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 05:05:42 -0400 |
commit | d1fcc0a8db5e47c1abaa783a3e83dbf5f2184969 (patch) | |
tree | 10f6ff571bb290eddfbf155180211df42c6849fc /drivers/clocksource | |
parent | 46a12f7426d71cabc08972cf8d3ffdd441d26a3a (diff) |
clocksource: sh_mtu2/cmt_register() should be static.
Neither of these need to be exported, so just make them static.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 6 | ||||
-rw-r--r-- | drivers/clocksource/sh_mtu2.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index aeb8c9b27b5b..cf56a2af5fe1 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -537,9 +537,9 @@ static void sh_cmt_register_clockevent(struct sh_cmt_priv *p, | |||
537 | clockevents_register_device(ced); | 537 | clockevents_register_device(ced); |
538 | } | 538 | } |
539 | 539 | ||
540 | int sh_cmt_register(struct sh_cmt_priv *p, char *name, | 540 | static int sh_cmt_register(struct sh_cmt_priv *p, char *name, |
541 | unsigned long clockevent_rating, | 541 | unsigned long clockevent_rating, |
542 | unsigned long clocksource_rating) | 542 | unsigned long clocksource_rating) |
543 | { | 543 | { |
544 | if (p->width == (sizeof(p->max_match_value) * 8)) | 544 | if (p->width == (sizeof(p->max_match_value) * 8)) |
545 | p->max_match_value = ~0; | 545 | p->max_match_value = ~0; |
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index ef02185a827a..d1ae75454d10 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c | |||
@@ -232,8 +232,8 @@ static void sh_mtu2_register_clockevent(struct sh_mtu2_priv *p, | |||
232 | clockevents_register_device(ced); | 232 | clockevents_register_device(ced); |
233 | } | 233 | } |
234 | 234 | ||
235 | int sh_mtu2_register(struct sh_mtu2_priv *p, char *name, | 235 | static int sh_mtu2_register(struct sh_mtu2_priv *p, char *name, |
236 | unsigned long clockevent_rating) | 236 | unsigned long clockevent_rating) |
237 | { | 237 | { |
238 | if (clockevent_rating) | 238 | if (clockevent_rating) |
239 | sh_mtu2_register_clockevent(p, name, clockevent_rating); | 239 | sh_mtu2_register_clockevent(p, name, clockevent_rating); |