diff options
author | David Lechner <david@lechnology.com> | 2018-05-18 11:48:06 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-06-26 15:38:58 +0530 |
commit | a7da5277cdc6690823ad226335feefc11391cf67 (patch) | |
tree | 0dc75c3f6163f1c1fdb78ea4b7fafd278db90636 /arch/arm/mach-davinci/dm365.c | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
download | linux-a7da5277cdc6690823ad226335feefc11391cf67.tar.gz linux-a7da5277cdc6690823ad226335feefc11391cf67.tar.bz2 linux-a7da5277cdc6690823ad226335feefc11391cf67.zip |
ARM: davinci: pass clock as parameter to davinci_timer_init()
This changes davinci_timer_init() so that we pass the clock as a
parameter instead of using clk_get(). This is done in preparation
for converting to the common clock framework.
It removes the requirement that we have to have a clock with con_id
of "timer0", which will be good for DT bindings since clock-names =
"timer0" doesn't really make sense.
Also, drop use of extern in header file since we are touching the
definition.
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm365.c')
-rw-r--r-- | arch/arm/mach-davinci/dm365.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 1e3df9df1e10..871372a59da8 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c @@ -1172,7 +1172,7 @@ void __init dm365_init(void) void __init dm365_init_time(void) { davinci_clk_init(dm365_clks); - davinci_timer_init(); + davinci_timer_init(&timer0_clk); } static struct resource dm365_vpss_resources[] = { |