Skip to content

Commit

Permalink
Merge branch 'clockevents/4.12-fixes' of https://git.linaro.org/peopl…
Browse files Browse the repository at this point in the history
…e/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)
  • Loading branch information
KAGA-KOKO committed Jun 20, 2017
2 parents dbb236c + 459fa24 commit 8e6cec1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clocksource/arm_arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/clocksource/cadence_ttc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/slab.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/clocksource/timer-sun5i.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <linux/clk.h>
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
Expand Down

0 comments on commit 8e6cec1

Please sign in to comment.