]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/armada: armada_drv: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Fri, 2 Jan 2015 21:04:25 +0000 (22:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 26 Jan 2015 16:23:40 +0000 (16:23 +0000)
Remove the function armada_drm_vbl_event_remove_unlocked() that is not used anywhere.

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: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_drm.h
drivers/gpu/drm/armada/armada_drv.c

index ea63c6c7c66f61a36dc9c866f85298d8865cd6bf..5f6aef0dca59e5fbef928f19429c69b4351f6f63 100644 (file)
@@ -46,8 +46,6 @@ void armada_drm_vbl_event_add(struct armada_crtc *,
        struct armada_vbl_event *);
 void armada_drm_vbl_event_remove(struct armada_crtc *,
        struct armada_vbl_event *);
-void armada_drm_vbl_event_remove_unlocked(struct armada_crtc *,
-       struct armada_vbl_event *);
 #define armada_drm_vbl_event_init(_e, _f, _d) do {     \
        struct armada_vbl_event *__e = _e;              \
        INIT_LIST_HEAD(&__e->node);                     \
index f672e6ad8afae05d42ebeb31b31bc9c3eb60c117..7c00a90997794fd6103b92865adcb1b70d84ca20 100644 (file)
@@ -252,16 +252,6 @@ void armada_drm_vbl_event_remove(struct armada_crtc *dcrtc,
        }
 }
 
-void armada_drm_vbl_event_remove_unlocked(struct armada_crtc *dcrtc,
-       struct armada_vbl_event *evt)
-{
-       unsigned long flags;
-
-       spin_lock_irqsave(&dcrtc->irq_lock, flags);
-       armada_drm_vbl_event_remove(dcrtc, evt);
-       spin_unlock_irqrestore(&dcrtc->irq_lock, flags);
-}
-
 /* These are called under the vbl_lock. */
 static int armada_drm_enable_vblank(struct drm_device *dev, int crtc)
 {