From: Pavel Machek Date: Fri, 14 Oct 2005 22:59:01 +0000 (-0700) Subject: [PATCH] zaurus: fix compilation with cpufreq disabled X-Git-Tag: Ubuntu-5.13.0-19.19~62724^2~3^2~38 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6edb7467be2195e7eeb6844e37668253af216100;p=mirror_ubuntu-jammy-kernel.git [PATCH] zaurus: fix compilation with cpufreq disabled This fixes compilation with CPU_FREQ disabled. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index beeec7b51425..8000890e4271 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -592,6 +592,7 @@ sa1100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 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_display_dma_period(struct fb_var_screeninfo */ return var->pixclock * 8 * 16 / var->bits_per_pixel; } +#endif /* * sa1100fb_check_var():