summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 2e406474..db018cb2 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1158,6 +1158,12 @@ static int gk20a_pm_disable_clk(struct device *dev)
1158 return 0; 1158 return 0;
1159} 1159}
1160 1160
1161static void gk20a_pm_shutdown(struct platform_device *pdev)
1162{
1163 dev_info(&pdev->dev, "shutting down");
1164 __pm_runtime_disable(&pdev->dev, false);
1165}
1166
1161#ifdef CONFIG_PM 1167#ifdef CONFIG_PM
1162const struct dev_pm_ops gk20a_pm_ops = { 1168const struct dev_pm_ops gk20a_pm_ops = {
1163#if defined(CONFIG_PM_RUNTIME) && !defined(CONFIG_PM_GENERIC_DOMAINS) 1169#if defined(CONFIG_PM_RUNTIME) && !defined(CONFIG_PM_GENERIC_DOMAINS)
@@ -1476,6 +1482,7 @@ static int __exit gk20a_remove(struct platform_device *dev)
1476static struct platform_driver gk20a_driver = { 1482static struct platform_driver gk20a_driver = {
1477 .probe = gk20a_probe, 1483 .probe = gk20a_probe,
1478 .remove = __exit_p(gk20a_remove), 1484 .remove = __exit_p(gk20a_remove),
1485 .shutdown = gk20a_pm_shutdown,
1479 .driver = { 1486 .driver = {
1480 .owner = THIS_MODULE, 1487 .owner = THIS_MODULE,
1481 .name = "gk20a", 1488 .name = "gk20a",