]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dmaengine: at_xdmac: fix usage of read, write wrappers
authorVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 12:04:13 +0000 (17:34 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 08:35:02 +0000 (14:05 +0530)
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>
drivers/dma/at_xdmac.c

index 155577b983094083b3c8dcf81853b02096e499b8..44f212de520087bf511f5ad22e160ad3c2483e57 100644 (file)
@@ -248,12 +248,12 @@ static inline void __iomem *at_xdmac_chan_reg_base(struct at_xdmac *atxdmac, uns
        return atxdmac->regs + (AT_XDMAC_CHAN_REG_BASE + chan_nb * 0x40);
 }
 
-#define at_xdmac_read(atxdmac, reg) readl_relaxed((atxdmac)->regs + (reg))
+#define at_xdmac_read(atxdmac, reg) readl((atxdmac)->regs + (reg))
 #define at_xdmac_write(atxdmac, reg, value) \
-       writel_relaxed((value), (atxdmac)->regs + (reg))
+       writel((value), (atxdmac)->regs + (reg))
 
-#define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg))
-#define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg))
+#define at_xdmac_chan_read(atchan, reg) readl((atchan)->ch_regs + (reg))
+#define at_xdmac_chan_write(atchan, reg, value) writel((value), (atchan)->ch_regs + (reg))
 
 static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan)
 {