diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-11 17:36:47 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-01-21 21:15:07 -0500 |
commit | 4d8bb03bced49526304592728002ebea54c7f224 (patch) | |
tree | 8ca4178432b23aaf2415d7f5690232bee2403584 | |
parent | 1119eef0fd4c440a7eae2f1ff174e809d9f129e6 (diff) |
drm/nouveau/dispnv04: Remove some unused functions
Removes some functions that are not used anywhere:
nv04_display_late_takedown() nv04_display_early_init()
This was partially found by using a static code analysis program
called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/disp.c | 18 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/disp.h | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.c b/drivers/gpu/drm/nouveau/dispnv04/disp.c index 3d0afa1c6cff..bdf7cf49afcd 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv04/disp.c | |||
@@ -32,24 +32,6 @@ | |||
32 | #include "nouveau_connector.h" | 32 | #include "nouveau_connector.h" |
33 | 33 | ||
34 | int | 34 | int |
35 | nv04_display_early_init(struct drm_device *dev) | ||
36 | { | ||
37 | /* ensure vblank interrupts are off, they can't be enabled until | ||
38 | * drm_vblank has been initialised | ||
39 | */ | ||
40 | NVWriteCRTC(dev, 0, NV_PCRTC_INTR_EN_0, 0); | ||
41 | if (nv_two_heads(dev)) | ||
42 | NVWriteCRTC(dev, 1, NV_PCRTC_INTR_EN_0, 0); | ||
43 | |||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | void | ||
48 | nv04_display_late_takedown(struct drm_device *dev) | ||
49 | { | ||
50 | } | ||
51 | |||
52 | int | ||
53 | nv04_display_create(struct drm_device *dev) | 35 | nv04_display_create(struct drm_device *dev) |
54 | { | 36 | { |
55 | struct nouveau_drm *drm = nouveau_drm(dev); | 37 | struct nouveau_drm *drm = nouveau_drm(dev); |
diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.h b/drivers/gpu/drm/nouveau/dispnv04/disp.h index 17b899d9aba3..3ad3ee818c1a 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/disp.h +++ b/drivers/gpu/drm/nouveau/dispnv04/disp.h | |||
@@ -90,8 +90,6 @@ nv04_display(struct drm_device *dev) | |||
90 | } | 90 | } |
91 | 91 | ||
92 | /* nv04_display.c */ | 92 | /* nv04_display.c */ |
93 | int nv04_display_early_init(struct drm_device *); | ||
94 | void nv04_display_late_takedown(struct drm_device *); | ||
95 | int nv04_display_create(struct drm_device *); | 93 | int nv04_display_create(struct drm_device *); |
96 | void nv04_display_destroy(struct drm_device *); | 94 | void nv04_display_destroy(struct drm_device *); |
97 | int nv04_display_init(struct drm_device *); | 95 | int nv04_display_init(struct drm_device *); |