Commit fc1df37e authored by Russell King's avatar Russell King Committed by Russell King

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0d317fb7
...@@ -598,7 +598,7 @@ sa1100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, ...@@ -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 * requests for the LCD controller. If we hit this, it means we're
* doing nothing but LCD DMA. * 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 * Period = pixclock * bits_per_byte * bytes_per_transfer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment