提交 220d2f26 编写于 作者: S Shawn Guo

ARM: mxs: remove cpu_is_mx23() call from timer code

Remove cpu_is_mx23() call from timer code by using
of_device_is_compatible() instead.
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
上级 be35bd2b
......@@ -266,7 +266,8 @@ static void __init mxs_timer_init(struct device_node *np)
/* get timrot version */
timrot_major_version = __raw_readl(mxs_timrot_base +
(cpu_is_mx23() ? MX23_TIMROT_VERSION_OFFSET :
(of_device_is_compatible(np, "fsl,imx23-timrot") ?
MX23_TIMROT_VERSION_OFFSET :
MX28_TIMROT_VERSION_OFFSET));
timrot_major_version >>= BP_TIMROT_MAJOR_VERSION;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册