aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci-regs.h
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2011-08-11 11:25:42 -0400
committerChris Ball <cjb@laptop.org>2011-10-26 15:43:25 -0400
commit03fc9a7f0c48a05ca548cd277835d7da97ed6936 (patch)
tree2d4500c4379073c4ad3b9f7f1264e9fa0b0b17f9 /drivers/mmc/host/atmel-mci-regs.h
parent2c96a293bbd6b34698c6710ea8607049956247c4 (diff)
mmc: atmel-mci: change atmci_readl and atmci_writel macros
Change atmci_readl and atmci_writel macros: remove string concatenation. We can use these macros with registers which are not prefixed by ATMCI_. This is the case if we want to write PDC registers which are common to several devices so they are not prefixed with ATMCI_. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/atmel-mci-regs.h')
-rw-r--r--drivers/mmc/host/atmel-mci-regs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/atmel-mci-regs.h b/drivers/mmc/host/atmel-mci-regs.h
index 29331ab67dc3..8574e910d1f8 100644
--- a/drivers/mmc/host/atmel-mci-regs.h
+++ b/drivers/mmc/host/atmel-mci-regs.h
@@ -121,8 +121,8 @@
121 121
122/* Register access macros */ 122/* Register access macros */
123#define atmci_readl(port,reg) \ 123#define atmci_readl(port,reg) \
124 __raw_readl((port)->regs + ATMCI_##reg) 124 __raw_readl((port)->regs + reg)
125#define atmci_writel(port,reg,value) \ 125#define atmci_writel(port,reg,value) \
126 __raw_writel((value), (port)->regs + ATMCI_##reg) 126 __raw_writel((value), (port)->regs + reg)
127 127
128#endif /* __DRIVERS_MMC_ATMEL_MCI_H__ */ 128#endif /* __DRIVERS_MMC_ATMEL_MCI_H__ */