diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 8747c632..79d6bd5f 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -655,6 +655,9 @@ static void gk20a_pm_shutdown(struct platform_device *pdev) | |||
655 | if (gk20a_gpu_is_virtual(&pdev->dev)) | 655 | if (gk20a_gpu_is_virtual(&pdev->dev)) |
656 | return; | 656 | return; |
657 | 657 | ||
658 | if (!g->power_on) | ||
659 | goto finish; | ||
660 | |||
658 | gk20a_driver_start_unload(g); | 661 | gk20a_driver_start_unload(g); |
659 | 662 | ||
660 | /* If GPU is already railgated, | 663 | /* If GPU is already railgated, |