summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-06-02 14:38:07 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-06-06 14:04:03 +1000
commit321f5c5f2c494f3c94cec2289c8add678657ba2d (patch)
treececa8e733fa2c41ad324b215552727b4c1977775 /drivers/gpu/drm/nouveau/nouveau_drv.h
parent86276921a17ee3090749c9f38f57dcfb73733bd4 (diff)
downloadlinux-321f5c5f2c494f3c94cec2289c8add678657ba2d.tar.gz
linux-321f5c5f2c494f3c94cec2289c8add678657ba2d.tar.bz2
linux-321f5c5f2c494f3c94cec2289c8add678657ba2d.zip
drm/nouveau: replace multiple open-coded runpm support checks with function
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index eadec2f49ad3..a11b6aaed325 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -108,8 +108,6 @@ nouveau_cli(struct drm_file *fpriv)
#include <nvif/object.h>
#include <nvif/device.h>
-extern int nouveau_runtime_pm;
-
struct nouveau_drm {
struct nouveau_cli client;
struct drm_device *dev;
@@ -195,6 +193,7 @@ nouveau_drm(struct drm_device *dev)
int nouveau_pmops_suspend(struct device *);
int nouveau_pmops_resume(struct device *);
+bool nouveau_pmops_runtime(void);
#include <nvkm/core/tegra.h>