diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 07:04:13 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-17 03:35:02 -0500 |
commit | 2abd4198090fbe88af653a4a0be3735d286356b2 (patch) | |
tree | b3281bc7e52446dcdf7deeada641b335cc82cd0b | |
parent | 5ac7d58280236ee4fa45202b82deabdfb4532f7a (diff) |
dmaengine: at_xdmac: fix usage of read, write wrappers
This driver uses read_relaxed and writel_relaxed to read, write to IO
memory. the config defines COMPILE_TEST so gets compiled on different archs.
This causes issue as few archs like x86 etc don't define it.
So use readl/writel which is defined in all archs
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/at_xdmac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 155577b98309..44f212de5200 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c | |||
@@ -248,12 +248,12 @@ static inline void __iomem *at_xdmac_chan_reg_base(struct at_xdmac *atxdmac, uns | |||
248 | return atxdmac->regs + (AT_XDMAC_CHAN_REG_BASE + chan_nb * 0x40); | 248 | return atxdmac->regs + (AT_XDMAC_CHAN_REG_BASE + chan_nb * 0x40); |
249 | } | 249 | } |
250 | 250 | ||
251 | #define at_xdmac_read(atxdmac, reg) readl_relaxed((atxdmac)->regs + (reg)) | 251 | #define at_xdmac_read(atxdmac, reg) readl((atxdmac)->regs + (reg)) |
252 | #define at_xdmac_write(atxdmac, reg, value) \ | 252 | #define at_xdmac_write(atxdmac, reg, value) \ |
253 | writel_relaxed((value), (atxdmac)->regs + (reg)) | 253 | writel((value), (atxdmac)->regs + (reg)) |
254 | 254 | ||
255 | #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg)) | 255 | #define at_xdmac_chan_read(atchan, reg) readl((atchan)->ch_regs + (reg)) |
256 | #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg)) | 256 | #define at_xdmac_chan_write(atchan, reg, value) writel((value), (atchan)->ch_regs + (reg)) |
257 | 257 | ||
258 | static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan) | 258 | static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan) |
259 | { | 259 | { |