summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r--drivers/gpu/nvgpu/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index 7ef626c2..0ed621ce 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -481,7 +481,8 @@ static void nvgpu_pci_remove(struct pci_dev *pdev)
481 481
482 enable_irq(g->irq_stall); 482 enable_irq(g->irq_stall);
483 483
484 kfree(g); 484 gk20a_get_platform(&pdev->dev)->g = NULL;
485 gk20a_put(g);
485} 486}
486 487
487static struct pci_driver nvgpu_pci_driver = { 488static struct pci_driver nvgpu_pci_driver = {