Message ID | 1497431443-14634-1-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Commit | 3db1200ca21f3c63c9044185dc5762ef996848cb |
Headers | show |
Series | [1/2] clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable | expand |
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 4bed671..8b5c300 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -1209,9 +1209,9 @@ arch_timer_mem_frame_get_cntfrq(struct arch_timer_mem_frame *frame) return 0; } - rate = readl_relaxed(frame + CNTFRQ); + rate = readl_relaxed(base + CNTFRQ); - iounmap(frame); + iounmap(base); return rate; }