From: Russell King Date: Sun, 7 Aug 2005 13:20:26 +0000 (+0100) Subject: [PATCH] ARM: Make sa1100fb_display_dma_period() an inline function X-Git-Tag: v2.6.13-rc7~131^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fc1df37e3b195cb73ecb14c30d41b7aace3f844a;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index 2d29db7ef80..beeec7b5142 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -598,7 +598,7 @@ sa1100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, * 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