Skip to contentSkip to conversation

Add __devexit_p around reference to virtio_pci_remove

PATCH Applied Jamie Lokier 2 participants 2 messages Jan 8, 2010 – Jan 12, 2010 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add __devexit_p around reference to virtio_pci_remove

This is needed to compile with CONFIG_VIRTIO_PCI=y, because virtio_pci_remove is marked __devexit.

---
 drivers/virtio/virtio_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/virtio/virtio_pci.c +1 -1
index 28d9cf7..1d5191f 100644
@@ -702,7 +702,7 @@ static struct pci_driver virtio_pci_driver = {
 	.name		= "virtio-pci",
 	.id_table	= virtio_pci_id_table,
 	.probe		= virtio_pci_probe,
-	.remove		= virtio_pci_remove,
+	.remove		= __devexit_p(virtio_pci_remove),
 #ifdef CONFIG_PM
 	.suspend	= virtio_pci_suspend,
 	.resume		= virtio_pci_resume,
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 2 lines · Jamie Lokier

This is needed to compile with CONFIG_VIRTIO_PCI=y, because virtio_pci_remove is marked __devexit.

Thanks applied.

Rusty.