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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index a81090a2..3677b02d 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -439,7 +439,9 @@ static void nvgpu_pci_remove(struct pci_dev *pdev)
439 gk20a_dbg(gpu_dbg_shutdown, "Removing nvgpu driver!\n"); 439 gk20a_dbg(gpu_dbg_shutdown, "Removing nvgpu driver!\n");
440 gk20a_driver_start_unload(g); 440 gk20a_driver_start_unload(g);
441 441
442 disable_irq(g->irq_stall); 442 if (g->irqs_enabled)
443 disable_irq(g->irq_stall);
444
443 devm_free_irq(&pdev->dev, g->irq_stall, g); 445 devm_free_irq(&pdev->dev, g->irq_stall, g);
444 446
445#if defined(CONFIG_PCI_MSI) 447#if defined(CONFIG_PCI_MSI)