提交 2d85b5d8 编写于 作者: P Peter De Schrijver 提交者: Olof Johansson

arm/tegra: clk_get should not be fatal

The timer and rtc-timer clocks aren't gated by default, so there is no reason
to crash the system if the dummy enable call failed.
Signed-off-by: NPeter De Schrijver <pdeschrijver@nvidia.com>
Acked-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NOlof Johansson <olof@lixom.net>
上级 d695cfa5
...@@ -186,7 +186,9 @@ static void __init tegra_init_timer(void) ...@@ -186,7 +186,9 @@ static void __init tegra_init_timer(void)
int ret; int ret;
clk = clk_get_sys("timer", NULL); clk = clk_get_sys("timer", NULL);
BUG_ON(IS_ERR(clk)); if (IS_ERR(clk))
pr_warn("Unable to get timer clock\n");
else
clk_enable(clk); clk_enable(clk);
/* /*
...@@ -194,7 +196,9 @@ static void __init tegra_init_timer(void) ...@@ -194,7 +196,9 @@ static void __init tegra_init_timer(void)
* enabled * enabled
*/ */
clk = clk_get_sys("rtc-tegra", NULL); clk = clk_get_sys("rtc-tegra", NULL);
BUG_ON(IS_ERR(clk)); if (IS_ERR(clk))
pr_warn("Unable to get rtc-tegra clock\n");
else
clk_enable(clk); clk_enable(clk);
#ifdef CONFIG_HAVE_ARM_TWD #ifdef CONFIG_HAVE_ARM_TWD
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册