Commit 5b484feb authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Arnd Bergmann

dmaengine: cirrus: ERR_CAST() ioremap error

ep93xx_dma.c:1354:37: sparse: sparse: incorrect type in return expression
				      (different address spaces)
ep93xx_dma.c:1354:37: sparse:     expected struct ep93xx_dma_engine *
ep93xx_dma.c:1354:37: sparse:     got void [noderef] __iomem *regs
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409202250.fPlN2Erd-lkp@intel.com/
Fixes: 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx")
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/d4b542f1d678796fbf094ebcc77295af3617bca0.camel@gmail.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 32af1c8a
...@@ -1395,7 +1395,7 @@ static struct ep93xx_dma_engine *ep93xx_dma_of_probe(struct platform_device *pde ...@@ -1395,7 +1395,7 @@ static struct ep93xx_dma_engine *ep93xx_dma_of_probe(struct platform_device *pde
edmac->chan.device = dma_dev; edmac->chan.device = dma_dev;
edmac->regs = devm_platform_ioremap_resource(pdev, i); edmac->regs = devm_platform_ioremap_resource(pdev, i);
if (IS_ERR(edmac->regs)) if (IS_ERR(edmac->regs))
return edmac->regs; return ERR_CAST(edmac->regs);
edmac->irq = fwnode_irq_get(dev_fwnode(dev), i); edmac->irq = fwnode_irq_get(dev_fwnode(dev), i);
if (edmac->irq < 0) if (edmac->irq < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment