diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-25 22:58:40 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-25 22:58:40 -0500 |
commit | 9d56dd3b083a3bec56e9da35ce07baca81030b03 (patch) | |
tree | a9df9d514fbc32defc1ca8a6d7c2795f15b8a128 /arch/sh/include/cpu-sh2 | |
parent | a077e91690fb32a1453423b2cf1df3492fd30c3a (diff) |
sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
The old ctrl in/out routines are non-portable and unsuitable for
cross-platform use. While drivers/sh has already been sanitized, there
is still quite a lot of code that is not. This converts the arch/sh/ bits
over, which permits us to flag the routines as deprecated whilst still
building with -Werror for the architecture code, and to ensure that
future users are not added.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/cpu-sh2')
-rw-r--r-- | arch/sh/include/cpu-sh2/cpu/watchdog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/cpu-sh2/cpu/watchdog.h b/arch/sh/include/cpu-sh2/cpu/watchdog.h index 393161c9c6d0..1eab8aa63a6d 100644 --- a/arch/sh/include/cpu-sh2/cpu/watchdog.h +++ b/arch/sh/include/cpu-sh2/cpu/watchdog.h | |||
@@ -44,7 +44,7 @@ static inline __u8 sh_wdt_read_rstcsr(void) | |||
44 | /* | 44 | /* |
45 | * Same read/write brain-damage as for WTCNT here.. | 45 | * Same read/write brain-damage as for WTCNT here.. |
46 | */ | 46 | */ |
47 | return ctrl_inb(RSTCSR_R); | 47 | return __raw_readb(RSTCSR_R); |
48 | } | 48 | } |
49 | 49 | ||
50 | /** | 50 | /** |
@@ -62,7 +62,7 @@ static inline void sh_wdt_write_rstcsr(__u8 val) | |||
62 | * we can't presently touch the WOVF bit, since the upper byte | 62 | * we can't presently touch the WOVF bit, since the upper byte |
63 | * has to be swapped for this. So just leave it alone.. | 63 | * has to be swapped for this. So just leave it alone.. |
64 | */ | 64 | */ |
65 | ctrl_outw((WTCNT_HIGH << 8) | (__u16)val, RSTCSR); | 65 | __raw_writeb((WTCNT_HIGH << 8) | (__u16)val, RSTCSR); |
66 | } | 66 | } |
67 | 67 | ||
68 | #endif /* __ASM_CPU_SH2_WATCHDOG_H */ | 68 | #endif /* __ASM_CPU_SH2_WATCHDOG_H */ |