diff mbox

[2/3] spi0: dw_spi: add a missed dw_spi_remove_host() in exit sequence

Message ID 20100119112015.23252e97@feng-desktop (mailing list archive)
State Accepted
Headers show

Commit Message

Feng Tang Jan. 19, 2010, 3:20 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/dw_spi_pci.c b/drivers/spi/dw_spi_pci.c
index 34ba691..7980f14 100644
--- a/drivers/spi/dw_spi_pci.c
+++ b/drivers/spi/dw_spi_pci.c
@@ -98,6 +98,7 @@  static void __devexit spi_pci_remove(struct pci_dev *pdev)
 	struct dw_spi_pci *dwpci = pci_get_drvdata(pdev);
 
 	pci_set_drvdata(pdev, NULL);
+	dw_spi_remove_host(&dwpci->dws);
 	iounmap(dwpci->dws.regs);
 	pci_release_region(pdev, 0);
 	kfree(dwpci);