summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-05-19 10:31:26 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-20 08:05:44 +0200
commit5731d3ebccb8cee4cd9283e179e94c1d01398e17 (patch)
treec26acf702ecc4160c1f8e26ab89c269250e7d0e2 /drivers/spi
parent1ec907c70141e4f9c7c09ac426082a1848dd6ff3 (diff)
downloadbarebox-5731d3ebccb8cee4cd9283e179e94c1d01398e17.tar.gz
barebox-5731d3ebccb8cee4cd9283e179e94c1d01398e17.tar.xz
Abolish cpu_read* and cpu_write* accessors
Commit 2e6a88f2101d (add cpu native ordered io accessors) introduced these macros and then commit be57f20cdd7d (Fix big endian MMIO primitives) figured out they are equivalent to __raw_{read,write}*. They turned out unnecessary after all. Anyway, most source files use __raw_read* and __raw_write*. Let's replace a few remaining references and abolish them. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/ath79_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c
index 4d71eba695..bdb39ef0cb 100644
--- a/drivers/spi/ath79_spi.c
+++ b/drivers/spi/ath79_spi.c
@@ -48,12 +48,12 @@ struct ath79_spi {
static inline u32 ath79_spi_rr(struct ath79_spi *sp, int reg)
{
- return cpu_readl(sp->regs + reg);
+ return __raw_readl(sp->regs + reg);
}
static inline void ath79_spi_wr(struct ath79_spi *sp, u32 val, int reg)
{
- cpu_writel(val, sp->regs + reg);
+ __raw_writel(val, sp->regs + reg);
}
static inline void setbits(struct ath79_spi *sp, int bits, int on)