summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2017-03-27 13:33:31 +0530
committerVinod Koul <vinod.koul@intel.com>2017-03-27 13:44:51 +0530
commitd7fd724e01939f777781a86d078c3b7142fb9c03 (patch)
treeed83fd003a2936bfb280dec2fddaf0c947c93e35 /drivers/dma
parent8e3ba95f41901e0da0bb3151ed696dca6f7ec511 (diff)
downloadtalos-op-linux-d7fd724e01939f777781a86d078c3b7142fb9c03.tar.gz
talos-op-linux-d7fd724e01939f777781a86d078c3b7142fb9c03.zip
dmaengine: cppi: fix build error due to bad variable
Commit 8e3ba95f4190 ("dmaengine: cppi41: use managed functions devm_*()") moved the code to devm_* but erranously changed a varible name, so fix it. drivers/dma/cppi41.c:1052:5: error: 'struct cppi41_dd' has no member named 'qmrg_mem' cdd->qmrg_mem = devm_ioremap_resource(dev, mem); ^ drivers/dma/cppi41.c:1053:16: error: 'struct cppi41_dd' has no member named 'qmrg_mem' if (IS_ERR(cdd->qmrg_mem)) ^ drivers/dma/cppi41.c:1054:21: error: 'struct cppi41_dd' has no member named 'qmrg_mem' return PTR_ERR(cdd->qmrg_mem); ^ Fixes: 8e3ba95f4190 ("dmaengine: cppi41: use managed functions devm_*()") Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/cppi41.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 1c63e1cf8c59..0be56c971786 100644
--- a/drivers/dma/cppi41.c
+++ b/drivers/dma/cppi41.c
@@ -1049,9 +1049,9 @@ static int cppi41_dma_probe(struct platform_device *pdev)
return PTR_ERR(cdd->sched_mem);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 2);
- cdd->qmrg_mem = devm_ioremap_resource(dev, mem);
- if (IS_ERR(cdd->qmrg_mem))
- return PTR_ERR(cdd->qmrg_mem);
+ cdd->qmgr_mem = devm_ioremap_resource(dev, mem);
+ if (IS_ERR(cdd->qmgr_mem))
+ return PTR_ERR(cdd->qmgr_mem);
spin_lock_init(&cdd->lock);
INIT_LIST_HEAD(&cdd->pending);
OpenPOWER on IntegriCloud