diff options
author | Scott Wood <scottwood@freescale.com> | 2007-07-24 16:53:07 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-10-03 21:36:35 -0400 |
commit | c1dcfd9d199043ff0e8805484a736ad36d9dd04a (patch) | |
tree | 87e04b315a1c277083dea7ae3443bcb56e94b9d2 /drivers/serial/cpm_uart/cpm_uart_cpm2.h | |
parent | 7ae870368d198affa249ed3382a8a288167ce885 (diff) |
[POWERPC] cpm_uart: sparse fixes
Mostly a bunch of direct access to in/out conversions, plus a few
cast removals, __iomem annotations, and miscellaneous cleanup.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/serial/cpm_uart/cpm_uart_cpm2.h')
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_cpm2.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm2.h b/drivers/serial/cpm_uart/cpm_uart_cpm2.h index e7717ece083..40006a7dce4 100644 --- a/drivers/serial/cpm_uart/cpm_uart_cpm2.h +++ b/drivers/serial/cpm_uart/cpm_uart_cpm2.h | |||
@@ -27,18 +27,18 @@ static inline void cpm_set_brg(int brg, int baud) | |||
27 | cpm_setbrg(brg, baud); | 27 | cpm_setbrg(brg, baud); |
28 | } | 28 | } |
29 | 29 | ||
30 | static inline void cpm_set_scc_fcr(volatile scc_uart_t * sup) | 30 | static inline void cpm_set_scc_fcr(scc_uart_t __iomem *sup) |
31 | { | 31 | { |
32 | sup->scc_genscc.scc_rfcr = CPMFCR_GBL | CPMFCR_EB; | 32 | out_8(&sup->scc_genscc.scc_rfcr, CPMFCR_GBL | CPMFCR_EB); |
33 | sup->scc_genscc.scc_tfcr = CPMFCR_GBL | CPMFCR_EB; | 33 | out_8(&sup->scc_genscc.scc_tfcr, CPMFCR_GBL | CPMFCR_EB); |
34 | } | 34 | } |
35 | 35 | ||
36 | static inline void cpm_set_smc_fcr(volatile smc_uart_t * up) | 36 | static inline void cpm_set_smc_fcr(smc_uart_t __iomem *up) |
37 | { | 37 | { |
38 | up->smc_rfcr = CPMFCR_GBL | CPMFCR_EB; | 38 | out_8(&up->smc_rfcr, CPMFCR_GBL | CPMFCR_EB); |
39 | up->smc_tfcr = CPMFCR_GBL | CPMFCR_EB; | 39 | out_8(&up->smc_tfcr, CPMFCR_GBL | CPMFCR_EB); |
40 | } | 40 | } |
41 | 41 | ||
42 | #define DPRAM_BASE ((unsigned char *)cpm_dpram_addr(0)) | 42 | #define DPRAM_BASE ((u8 __iomem __force *)cpm_dpram_addr(0)) |
43 | 43 | ||
44 | #endif | 44 | #endif |