diff options
| -rw-r--r-- | arch/arm/mach-mxs/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/timer.c b/arch/arm/mach-mxs/timer.c index c8cda1834655..f4dd96ff081a 100644 --- a/arch/arm/mach-mxs/timer.c +++ b/arch/arm/mach-mxs/timer.c | |||
| @@ -266,7 +266,8 @@ static void __init mxs_timer_init(struct device_node *np) | |||
| 266 | 266 | ||
| 267 | /* get timrot version */ | 267 | /* get timrot version */ |
| 268 | timrot_major_version = __raw_readl(mxs_timrot_base + | 268 | timrot_major_version = __raw_readl(mxs_timrot_base + |
| 269 | (cpu_is_mx23() ? MX23_TIMROT_VERSION_OFFSET : | 269 | (of_device_is_compatible(np, "fsl,imx23-timrot") ? |
| 270 | MX23_TIMROT_VERSION_OFFSET : | ||
| 270 | MX28_TIMROT_VERSION_OFFSET)); | 271 | MX28_TIMROT_VERSION_OFFSET)); |
| 271 | timrot_major_version >>= BP_TIMROT_MAJOR_VERSION; | 272 | timrot_major_version >>= BP_TIMROT_MAJOR_VERSION; |
| 272 | 273 | ||
