diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-01-04 04:23:13 +0100 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2013-01-15 05:45:58 +0100 |
commit | c1b724f6659a7e9e32f8fcf6409d053e1b7bccad (patch) | |
tree | f5ab383348e30169aad1fb54e2460e1b28560229 /drivers/clocksource/bcm2835_timer.c | |
parent | Merge remote-tracking branch 'korg_arm-soc/timer/cleanup' into cleanup (diff) | |
download | linux-c1b724f6659a7e9e32f8fcf6409d053e1b7bccad.tar.xz linux-c1b724f6659a7e9e32f8fcf6409d053e1b7bccad.zip |
ARM: bcm2835: make use of CLKSRC_OF
Using CLKSRC_OF enables deletion of the SoC-specific header
bcm2835_timer.h, replacing the custom function bcm2835_timer_init() with
the standardized automatic clocksource_of_init().
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'drivers/clocksource/bcm2835_timer.c')
-rw-r--r-- | drivers/clocksource/bcm2835_timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 7f796d8f7505..50c68fef944b 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -16,7 +16,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <linux/bcm2835_timer.h> #include <linux/bitops.h> #include <linux/clockchips.h> #include <linux/clocksource.h> @@ -101,7 +100,7 @@ static struct of_device_id bcm2835_time_match[] __initconst = { {} }; -void __init bcm2835_timer_init(void) +static void __init bcm2835_timer_init(void) { struct device_node *node; void __iomem *base; @@ -155,3 +154,5 @@ void __init bcm2835_timer_init(void) pr_info("bcm2835: system timer (irq = %d)\n", irq); } +CLOCKSOURCE_OF_DECLARE(bcm2835, "brcm,bcm2835-system-timer", + bcm2835_timer_init); |