diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
605 | #ifdef CONFIG_PM | 605 | #ifdef CONFIG_PM |
606 | struct gk20a *g = get_gk20a(dev); | 606 | struct gk20a *g = get_gk20a(dev); |
607 | 607 | ||
608 | if (!g->can_railgate) { | 608 | if (!nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE)) { |
609 | pm_runtime_disable(dev); | 609 | pm_runtime_disable(dev); |
610 | } else { | 610 | } else { |
611 | if (g->railgate_delay) | 611 | if (g->railgate_delay) |