Skip to contentSkip to conversation

gma500: Remove the unused function gma_pipe_event()

PATCH New Jiapeng Chong 1 participant 1 message Oct 18, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gma500: Remove the unused function gma_pipe_event()

The function gma_pipe_event() is defined in the psb_irq.c file, but not called elsewhere, so remove this unused function.

drivers/gpu/drm/gma500/psb_irq.c:35:19: warning: unused function 'gma_pipe_event'.

---
 drivers/gpu/drm/gma500/psb_irq.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/gpu/drm/gma500/psb_irq.c +0 -11
index d421031462df..343c51250207 100644
@@ -32,17 +32,6 @@ static inline u32 gma_pipestat(int pipe)
 	BUG();
 }
 
-static inline u32 gma_pipe_event(int pipe)
-{
-	if (pipe == 0)
-		return _PSB_PIPEA_EVENT_FLAG;
-	if (pipe == 1)
-		return _MDFLD_PIPEB_EVENT_FLAG;
-	if (pipe == 2)
-		return _MDFLD_PIPEC_EVENT_FLAG;
-	BUG();
-}
-
 static inline u32 gma_pipeconf(int pipe)
 {
 	if (pipe == 0)
Signature · 1 line
2.20.1.7.g153144c