tree 9180f60ee3a816632b5ff9f8c8d774259af3d686
parent 0d317fb72fe3cf0f611608cf3a3015bbe6cd2a66
author Russell King <[EMAIL PROTECTED]> Sun, 07 Aug 2005 14:20:26 +0100
committer Russell King <[EMAIL PROTECTED]> Sun, 07 Aug 2005 14:20:26 +0100

[PATCH] ARM: Make sa1100fb_display_dma_period() an inline function

This function produces a warning when CPU_FREQ=n.  Since it's a very
simple calculation, make it inline instead of adding preprocessor
directives around it.

Signed-off-by: Russell King <[EMAIL PROTECTED]>

 drivers/video/sa1100fb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c
--- a/drivers/video/sa1100fb.c
+++ b/drivers/video/sa1100fb.c
@@ -598,7 +598,7 @@ sa1100fb_setcolreg(u_int regno, u_int re
  *    requests for the LCD controller.  If we hit this, it means we're
  *    doing nothing but LCD DMA.
-static unsigned int sa1100fb_display_dma_period(struct fb_var_screeninfo *var)
+static inline unsigned int sa1100fb_display_dma_period(struct 
fb_var_screeninfo *var)
         * Period = pixclock * bits_per_byte * bytes_per_transfer
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to