~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to drivers/video/atmel_lcdfb.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
/**
262
262
 *      atmel_lcdfb_alloc_video_memory - Allocate framebuffer memory
263
263
 *      @sinfo: the frame buffer to allocate memory for
 
264
 *      
 
265
 *      This function is called only from the atmel_lcdfb_probe()
 
266
 *      so no locking by fb_info->mm_lock around smem_len setting is needed.
264
267
 */
265
268
static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo)
266
269
{
345
348
        dev_dbg(dev, "  bpp:        %u\n", var->bits_per_pixel);
346
349
        dev_dbg(dev, "  clk:        %lu KHz\n", clk_value_khz);
347
350
 
348
 
        if ((PICOS2KHZ(var->pixclock) * var->bits_per_pixel / 8) > clk_value_khz) {
 
351
        if (PICOS2KHZ(var->pixclock) > clk_value_khz) {
349
352
                dev_err(dev, "%lu KHz pixel clock is too fast\n", PICOS2KHZ(var->pixclock));
350
353
                return -EINVAL;
351
354
        }