summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci-regs.h
diff options
context:
space:
mode:
authorLudovic Desroches2011-08-11 17:25:42 +0200
committerChris Ball2011-10-26 21:43:25 +0200
commit03fc9a7f0c48a05ca548cd277835d7da97ed6936 (patch)
tree2d4500c4379073c4ad3b9f7f1264e9fa0b0b17f9 /drivers/mmc/host/atmel-mci-regs.h
parentmmc: atmel-mci: change namespace (diff)
downloadkernel-qcow2-linux-03fc9a7f0c48a05ca548cd277835d7da97ed6936.tar.gz
kernel-qcow2-linux-03fc9a7f0c48a05ca548cd277835d7da97ed6936.tar.xz
kernel-qcow2-linux-03fc9a7f0c48a05ca548cd277835d7da97ed6936.zip
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 @@
/* 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__ */