summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci-regs.h
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2011-08-11 15:25:42 +0000
committerChris Ball <cjb@laptop.org>2011-10-26 15:43:25 -0400
commit03fc9a7f0c48a05ca548cd277835d7da97ed6936 (patch)
tree2d4500c4379073c4ad3b9f7f1264e9fa0b0b17f9 /drivers/mmc/host/atmel-mci-regs.h
parent2c96a293bbd6b34698c6710ea8607049956247c4 (diff)
downloadop-kernel-dev-03fc9a7f0c48a05ca548cd277835d7da97ed6936.zip
op-kernel-dev-03fc9a7f0c48a05ca548cd277835d7da97ed6936.tar.gz
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 29331ab..8574e91 100644
--- a/drivers/mmc/host/atmel-mci-regs.h
+++ b/drivers/mmc/host/atmel-mci-regs.h
@@ -121,8 +121,8 @@
/* Register access macros */
#define atmci_readl(port,reg) \
- __raw_readl((port)->regs + ATMCI_##reg)
+ __raw_readl((port)->regs + reg)
#define atmci_writel(port,reg,value) \
- __raw_writel((value), (port)->regs + ATMCI_##reg)
+ __raw_writel((value), (port)->regs + reg)
#endif /* __DRIVERS_MMC_ATMEL_MCI_H__ */
OpenPOWER on IntegriCloud