From f403800dce923c8bac982291aee213e1e3afdab0 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 26 Jun 2018 17:18:17 +0300 Subject: gpu: nvgpu: move can_railgate to enabled.h The g->can_railgate flag is a global constant-ish property like the rest of the flags behind nvgpu_is_enabled() API, so move it there. Bug 200327089 Change-Id: Id1f2f16ea1975a03fb56f10c2f3c8c705574e341 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1764266 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/os/linux/pci.c') diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index 1011b441..205986ec 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c @@ -605,7 +605,7 @@ static int nvgpu_pci_pm_init(struct device *dev) #ifdef CONFIG_PM struct gk20a *g = get_gk20a(dev); - if (!g->can_railgate) { + if (!nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE)) { pm_runtime_disable(dev); } else { if (g->railgate_delay) -- cgit v1.2.2