diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2013-02-04 14:40:30 +0100 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-03-11 21:29:43 +0100 |
commit | 6f88fb8af6c67f281b8e2cd607f08e0089c8ccbe (patch) | |
tree | 8d945e2d594c9334616b612bacbd380a89ed5400 /drivers/clocksource | |
parent | ARM: tegra: Unify Device tree board files (diff) | |
download | linux-6f88fb8af6c67f281b8e2cd607f08e0089c8ccbe.tar.xz linux-6f88fb8af6c67f281b8e2cd607f08e0089c8ccbe.zip |
clocksource: tegra: move to of_clk_get
The new clockframework introduced DT IDs for each clock. To be able to remove
the device registrations, this driver needs to be updated to use the DT IDs.
Note that the actual removal of the clk_register_clkdev() calls will be done
in a later series.
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/tegra20_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c index 0bde03feb095..bc4b8ad78aea 100644 --- a/drivers/clocksource/tegra20_timer.c +++ b/drivers/clocksource/tegra20_timer.c @@ -189,7 +189,7 @@ static void __init tegra20_init_timer(void) BUG(); } - clk = clk_get_sys("timer", NULL); + clk = of_clk_get(np, 0); if (IS_ERR(clk)) { pr_warn("Unable to get timer clock. Assuming 12Mhz input clock.\n"); rate = 12000000; @@ -216,7 +216,7 @@ static void __init tegra20_init_timer(void) * rtc registers are used by read_persistent_clock, keep the rtc clock * enabled */ - clk = clk_get_sys("rtc-tegra", NULL); + clk = of_clk_get(np, 0); if (IS_ERR(clk)) pr_warn("Unable to get rtc-tegra clock\n"); else |