提交 61a2381c 编写于 作者: M Manuel Lauss 提交者: Mark Brown

spi: spi-au1550: fix build failure

Fix a build failure introduced with commit 30670539
(spi: au1550: Fix bug in deallocation of memory)
Signed-off-by: NManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 7d1311b9
...@@ -945,7 +945,7 @@ static int au1550_spi_remove(struct platform_device *pdev) ...@@ -945,7 +945,7 @@ static int au1550_spi_remove(struct platform_device *pdev)
spi_bitbang_stop(&hw->bitbang); spi_bitbang_stop(&hw->bitbang);
free_irq(hw->irq, hw); free_irq(hw->irq, hw);
iounmap((void __iomem *)hw->regs); iounmap((void __iomem *)hw->regs);
release_mem_region(r->start, sizeof(psc_spi_t)); release_mem_region(hw->ioarea->start, sizeof(psc_spi_t));
if (hw->usedma) { if (hw->usedma) {
au1550_spi_dma_rxtmp_free(hw); au1550_spi_dma_rxtmp_free(hw);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册