Skip to content

Commit 8e6cec1

Browse files
committed
Merge branch 'clockevents/4.12-fixes' of https://git.linaro.org/people/daniel.lezcano/linux into timers/urgent
Pull clockevents fixes from Daniel Lezcano: - Fixed wrong iomem area unmapped in the arch_arm_timer (Frank Rowand) - Added missing includes for sun5i and cadence-ttc (Stephen Rothwell)
2 parents dbb236c + 459fa24 commit 8e6cec1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

drivers/clocksource/arm_arch_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,9 +1209,9 @@ arch_timer_mem_frame_get_cntfrq(struct arch_timer_mem_frame *frame)
12091209
return 0;
12101210
}
12111211

1212-
rate = readl_relaxed(frame + CNTFRQ);
1212+
rate = readl_relaxed(base + CNTFRQ);
12131213

1214-
iounmap(frame);
1214+
iounmap(base);
12151215

12161216
return rate;
12171217
}

drivers/clocksource/cadence_ttc_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/clk.h>
1919
#include <linux/interrupt.h>
2020
#include <linux/clockchips.h>
21+
#include <linux/clocksource.h>
2122
#include <linux/of_address.h>
2223
#include <linux/of_irq.h>
2324
#include <linux/slab.h>

drivers/clocksource/timer-sun5i.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <linux/clk.h>
1414
#include <linux/clockchips.h>
15+
#include <linux/clocksource.h>
1516
#include <linux/delay.h>
1617
#include <linux/interrupt.h>
1718
#include <linux/irq.h>

0 commit comments

Comments
 (0)