Skip to contentSkip to conversation

spi: spi-au1550: fix build failure introduced in recent "bugfix"

PATCH New Manuel Lauss 1 participant 1 message Aug 10, 2014 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spi-au1550: fix build failure introduced in recent "bugfix"

Commit 30670539b867d08c1931abd4815699de5887ee58
(spi: au1550: Fix bug in deallocation of memory) replaced working lines of code with an obvious and untested copy-paste leading to a build failure.

This patch fixes the "bugfix".

Cc Himangi Saraogi <[email protected]>
---
 drivers/spi/spi-au1550.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-au1550.c +1 -1
index 40c3d43..f40b34c 100644
@@ -945,7 +945,7 @@ static int au1550_spi_remove(struct platform_device *pdev)
 	spi_bitbang_stop(&hw->bitbang);
 	free_irq(hw->irq, hw);
 	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) {
 		au1550_spi_dma_rxtmp_free(hw);
Signature · 6 lines
2.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html