Skip to contentSkip to conversation

fix compilation with cpufreq disabled

zaurus Pavel Machek 1 participant 1 message Oct 3, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

This fixes compilation with CPU_FREQ disabled.

drivers/video/sa1100fb.c +2 -0
@@ -592,6 +592,7 @@ sa1100fb_setcolreg(u_int regno, u_int re
 	return ret;
 }
 
+#ifdef CONFIG_CPU_FREQ
 /*
  *  sa1100fb_display_dma_period()
  *    Calculate the minimum period (in picoseconds) between two DMA
@@ -606,6 +607,7 @@ static inline unsigned int sa1100fb_disp
 	 */
 	return var->pixclock * 8 * 16 / var->bits_per_pixel;
 }
+#endif
 
 /*
  *  sa1100fb_check_var():
Signature · 1 line
if you have sharp zaurus hardware you don't need... you know my address