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:
Terje Bergstrom
2014-10-23 14:46:42 +03:00
committed by Dan Willemsen
parent 3446d89539
commit 4c12bbce39

View File

@@ -1599,8 +1599,8 @@ int gk20a_busy(struct platform_device *pdev)
#else #else
if (!g->power_on) { if (!g->power_on) {
ret = platform->virtual_dev ? ret = platform->virtual_dev ?
vgpu_pm_finalize_poweron(&dev->dev) vgpu_pm_finalize_poweron(&pdev->dev)
: gk20a_pm_finalize_poweron(&dev->dev); : gk20a_pm_finalize_poweron(&pdev->dev);
if (ret) if (ret)
goto fail; goto fail;
} }
@@ -1615,8 +1615,8 @@ fail:
void gk20a_idle(struct platform_device *pdev) void gk20a_idle(struct platform_device *pdev)
{ {
struct gk20a_platform *platform = gk20a_get_platform(pdev);
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM_RUNTIME
struct gk20a_platform *platform = gk20a_get_platform(pdev);
if (atomic_read(&pdev->dev.power.usage_count) == 1) if (atomic_read(&pdev->dev.power.usage_count) == 1)
gk20a_scale_notify_idle(pdev); gk20a_scale_notify_idle(pdev);
pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_mark_last_busy(&pdev->dev);