mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Fix build break with no PM runtime
Bug 1567274 Change-Id: I6ca10e329a46edf859f5b22f18d0da9bc8f41cd6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/562474 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
3446d89539
commit
4c12bbce39
@@ -1599,8 +1599,8 @@ int gk20a_busy(struct platform_device *pdev)
|
||||
#else
|
||||
if (!g->power_on) {
|
||||
ret = platform->virtual_dev ?
|
||||
vgpu_pm_finalize_poweron(&dev->dev)
|
||||
: gk20a_pm_finalize_poweron(&dev->dev);
|
||||
vgpu_pm_finalize_poweron(&pdev->dev)
|
||||
: gk20a_pm_finalize_poweron(&pdev->dev);
|
||||
if (ret)
|
||||
goto fail;
|
||||
}
|
||||
@@ -1615,8 +1615,8 @@ fail:
|
||||
|
||||
void gk20a_idle(struct platform_device *pdev)
|
||||
{
|
||||
struct gk20a_platform *platform = gk20a_get_platform(pdev);
|
||||
#ifdef CONFIG_PM_RUNTIME
|
||||
struct gk20a_platform *platform = gk20a_get_platform(pdev);
|
||||
if (atomic_read(&pdev->dev.power.usage_count) == 1)
|
||||
gk20a_scale_notify_idle(pdev);
|
||||
pm_runtime_mark_last_busy(&pdev->dev);
|
||||
|
||||
Reference in New Issue
Block a user