]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau/dispnv04: Remove some unused functions
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 11 Jan 2015 22:36:47 +0000 (23:36 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:07 +0000 (12:15 +1000)
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>
drivers/gpu/drm/nouveau/dispnv04/disp.c
drivers/gpu/drm/nouveau/dispnv04/disp.h

index 3d0afa1c6cff15eb487029f0170213846f806acb..bdf7cf49afcdb29502dd704b33049b05fd250746 100644 (file)
 #include "nouveau_encoder.h"
 #include "nouveau_connector.h"
 
-int
-nv04_display_early_init(struct drm_device *dev)
-{
-       /* ensure vblank interrupts are off, they can't be enabled until
-        * drm_vblank has been initialised
-        */
-       NVWriteCRTC(dev, 0, NV_PCRTC_INTR_EN_0, 0);
-       if (nv_two_heads(dev))
-               NVWriteCRTC(dev, 1, NV_PCRTC_INTR_EN_0, 0);
-
-       return 0;
-}
-
-void
-nv04_display_late_takedown(struct drm_device *dev)
-{
-}
-
 int
 nv04_display_create(struct drm_device *dev)
 {
index 17b899d9aba3c9978a15ca664de1c5f4a5c7884f..3ad3ee818c1af68249150078dc240b9be746b11d 100644 (file)
@@ -90,8 +90,6 @@ nv04_display(struct drm_device *dev)
 }
 
 /* nv04_display.c */
-int nv04_display_early_init(struct drm_device *);
-void nv04_display_late_takedown(struct drm_device *);
 int nv04_display_create(struct drm_device *);
 void nv04_display_destroy(struct drm_device *);
 int nv04_display_init(struct drm_device *);