aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/cpm_uart/cpm_uart_cpm1.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-07-24 16:53:07 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-10-03 21:36:35 -0400
commitc1dcfd9d199043ff0e8805484a736ad36d9dd04a (patch)
tree87e04b315a1c277083dea7ae3443bcb56e94b9d2 /drivers/serial/cpm_uart/cpm_uart_cpm1.h
parent7ae870368d198affa249ed3382a8a288167ce885 (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_cpm1.h')
-rw-r--r--drivers/serial/cpm_uart/cpm_uart_cpm1.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm1.h b/drivers/serial/cpm_uart/cpm_uart_cpm1.h
index 69f523a442e0..9b5465fb0bbb 100644
--- a/drivers/serial/cpm_uart/cpm_uart_cpm1.h
+++ b/drivers/serial/cpm_uart/cpm_uart_cpm1.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
30static inline void cpm_set_scc_fcr(volatile scc_uart_t * sup) 30static inline void cpm_set_scc_fcr(scc_uart_t __iomem * sup)
31{ 31{
32 sup->scc_genscc.scc_rfcr = SMC_EB; 32 out_8(&sup->scc_genscc.scc_rfcr, SMC_EB);
33 sup->scc_genscc.scc_tfcr = SMC_EB; 33 out_8(&sup->scc_genscc.scc_tfcr, SMC_EB);
34} 34}
35 35
36static inline void cpm_set_smc_fcr(volatile smc_uart_t * up) 36static inline void cpm_set_smc_fcr(smc_uart_t __iomem * up)
37{ 37{
38 up->smc_rfcr = SMC_EB; 38 out_8(&up->smc_rfcr, SMC_EB);
39 up->smc_tfcr = SMC_EB; 39 out_8(&up->smc_tfcr, SMC_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