summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2013-08-19 21:35:16 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-08-30 19:34:34 -0700
commit5c26a8baf534001b612f9f39f1fa5075e36b6aa9 (patch)
tree4d833012e53208810ce06a2103ff044123cd325c /drivers/clocksource
parent104171c043a7019aa14b115bf35bc29491397d07 (diff)
Revert "clocksource: tegra: move to of_clk_get"
This reverts commit 6f88fb8af6c67f281b8e2cd607f08e0089c8ccbe. Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/tegra20_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c
index ae877b021b54..2e4d8a666c36 100644
--- a/drivers/clocksource/tegra20_timer.c
+++ b/drivers/clocksource/tegra20_timer.c
@@ -172,7 +172,7 @@ static void __init tegra20_init_timer(struct device_node *np)
BUG();
}
- clk = of_clk_get(np, 0);
+ clk = clk_get_sys("timer", NULL);
if (IS_ERR(clk)) {
pr_warn("Unable to get timer clock. Assuming 12Mhz input clock.\n");
rate = 12000000;
@@ -235,7 +235,7 @@ static void __init tegra20_init_rtc(struct device_node *np)
* rtc registers are used by read_persistent_clock, keep the rtc clock
* enabled
*/
- clk = of_clk_get(np, 0);
+ clk = clk_get_sys("rtc-tegra", NULL);
if (IS_ERR(clk))
pr_warn("Unable to get rtc-tegra clock\n");
else