aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-07-28 02:27:25 -0400
committerVinod Koul <vinod.koul@intel.com>2014-07-28 03:19:33 -0400
commit42c0d54e62369584f2491f072f405602ff504e0e (patch)
tree1d7966f3263fbed947c556991fccb098c6f99392
parentec1f0c96669a23f898c25a30a5319baebf3f0677 (diff)
dmaengine: sun6i: fix build failure on x86, xilinx targets
Since the driver defined COMPILE_TEST, it gets compiled for different arch's The driver uses __virt_to_phys() insteadof virt_to_phys, so replace it drivers/dma/sun6i-dma.c: In function ‘sun6i_dma_dump_chan_regs’: drivers/dma/sun6i-dma.c:203: error: implicit declaration of function '__virt_to_phys' Reported-by: kbuild test robot <fengguang.wu@intel.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/sun6i-dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c
index ce8d5d1b0ff4..e9f99bbc985e 100644
--- a/drivers/dma/sun6i-dma.c
+++ b/drivers/dma/sun6i-dma.c
@@ -200,7 +200,7 @@ static inline void sun6i_dma_dump_com_regs(struct sun6i_dma_dev *sdev)
200static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev, 200static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
201 struct sun6i_pchan *pchan) 201 struct sun6i_pchan *pchan)
202{ 202{
203 phys_addr_t reg = __virt_to_phys((unsigned long)pchan->base); 203 phys_addr_t reg = virt_to_phys(pchan->base);
204 204
205 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n" 205 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
206 "\t___en(%04x): \t0x%08x\n" 206 "\t___en(%04x): \t0x%08x\n"
@@ -330,7 +330,7 @@ static inline int sun6i_dma_cfg_lli(struct sun6i_dma_lli *lli,
330static inline void sun6i_dma_dump_lli(struct sun6i_vchan *vchan, 330static inline void sun6i_dma_dump_lli(struct sun6i_vchan *vchan,
331 struct sun6i_dma_lli *lli) 331 struct sun6i_dma_lli *lli)
332{ 332{
333 phys_addr_t p_lli = __virt_to_phys((unsigned long)lli); 333 phys_addr_t p_lli = virt_to_phys(lli);
334 334
335 dev_dbg(chan2dev(&vchan->vc.chan), 335 dev_dbg(chan2dev(&vchan->vc.chan),
336 "\n\tdesc: p - %pa v - 0x%p\n" 336 "\n\tdesc: p - %pa v - 0x%p\n"