]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/sa1100fb.c
Pull acpi-produce-consume into release branch
[linux-2.6-omap-h63xx.git] / drivers / video / sa1100fb.c
index 4f8043a71f21d1392438dade8c9ecafe0f7c0891..8000890e42711fc59503488851734054251b16b0 100644 (file)
@@ -592,13 +592,14 @@ 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
  *    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
@@ -606,6 +607,7 @@ static unsigned int sa1100fb_display_dma_period(struct fb_var_screeninfo *var)
         */
        return var->pixclock * 8 * 16 / var->bits_per_pixel;
 }
+#endif
 
 /*
  *  sa1100fb_check_var():
@@ -1307,7 +1309,7 @@ sa1100fb_freq_policy(struct notifier_block *nb, unsigned long val,
  * Power management hooks.  Note that we won't be called from IRQ context,
  * unlike the blank functions above, so we may sleep.
  */
-static int sa1100fb_suspend(struct device *dev, u32 state, u32 level)
+static int sa1100fb_suspend(struct device *dev, pm_message_t state, u32 level)
 {
        struct sa1100fb_info *fbi = dev_get_drvdata(dev);