summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/dispnv50/disp.c
diff options
context:
space:
mode:
authorBen Skeggs2019-02-12 13:28:13 +0100
committerBen Skeggs2019-02-19 23:59:59 +0100
commitba801ef068c1deed08531ff70e16c4847c338c73 (patch)
treedceeffd1e4f0c775a89ad7ae31cf0294d2454488 /drivers/gpu/drm/nouveau/dispnv50/disp.c
parentdrm/nouveau: allocate kernel channel(s) before initialising display (diff)
downloadkernel-qcow2-linux-ba801ef068c1deed08531ff70e16c4847c338c73.tar.gz
kernel-qcow2-linux-ba801ef068c1deed08531ff70e16c4847c338c73.tar.xz
kernel-qcow2-linux-ba801ef068c1deed08531ff70e16c4847c338c73.zip
drm/nouveau/kms: display destroy/init/fini hooks can be static
Swapped order of functions in dispnv04 to allow this, but no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/disp.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv50/disp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 3f618ed4ec6f..07aee824b364 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -2221,7 +2221,7 @@ nv50_disp_func = {
* Init
*****************************************************************************/
-void
+static void
nv50_display_fini(struct drm_device *dev)
{
struct nouveau_encoder *nv_encoder;
@@ -2243,7 +2243,7 @@ nv50_display_fini(struct drm_device *dev)
}
}
-int
+static int
nv50_display_init(struct drm_device *dev)
{
struct nv50_core *core = nv50_disp(dev)->core;
@@ -2270,7 +2270,7 @@ nv50_display_init(struct drm_device *dev)
return 0;
}
-void
+static void
nv50_display_destroy(struct drm_device *dev)
{
struct nv50_disp *disp = nv50_disp(dev);