diff options
| author | Ben Dooks <[email protected]> | 2015-03-30 20:17:09 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-03-31 07:15:58 +0000 |
| commit | 4806c87f017d8a7003ad34886f58c3b9e023df6a (patch) | |
| tree | 20b2e4d5b3815b97798185ad295c1b789cf5c0f0 /drivers/clocksource/timer-atmel-pit.c | |
| parent | clocksource/drivers/sun4i-timer: Only register a sched_clock on sun4i and sun5i (diff) | |
| download | kernel-4806c87f017d8a7003ad34886f58c3b9e023df6a.tar.gz kernel-4806c87f017d8a7003ad34886f58c3b9e023df6a.zip | |
clocksource/drivers/at91: Fix IO endianness
Fix the use of __raw IO accessor with the readl/writel_relaxed()
versions to allow the code to be used on a system running in big
endian mode.
Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Cc: Andrew Victor <[email protected]>
Cc: Jean-Christophe Plagniol-Villard <[email protected]>
Cc: Linux ARM Kernel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-atmel-pit.c')
| -rw-r--r-- | drivers/clocksource/timer-atmel-pit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index b5b4d4585c9a..c0304ff608b0 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c @@ -61,12 +61,12 @@ static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clk static inline unsigned int pit_read(void __iomem *base, unsigned int reg_offset) { - return __raw_readl(base + reg_offset); + return readl_relaxed(base + reg_offset); } static inline void pit_write(void __iomem *base, unsigned int reg_offset, unsigned long value) { - __raw_writel(value, base + reg_offset); + writel_relaxed(value, base + reg_offset); } /* |
