]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/s3c2410fb.c
rt2x00: Input-polldev requires input device
[linux-2.6-omap-h63xx.git] / drivers / video / s3c2410fb.c
index ae08d45870917e3fac1dc70dca5201c87ff147d3..b3c31d9dc591bc1c8e4780e9e086ec5254834a32 100644 (file)
@@ -56,7 +56,7 @@
  *     - Add support for different devices
  *     - Backlight support
  *
- * 2004-09-05: Herbert Pötzl <herbert@13thfloor.at>
+ * 2004-09-05: Herbert Pötzl <herbert@13thfloor.at>
  *     - added clock (de-)allocation code
  *     - added fixem fbmem option
  *
@@ -64,7 +64,7 @@
  *     - code cleanup
  *     - added a forgotten return in h1940fb_init
  *
- * 2004-07-19: Herbert Pötzl <herbert@13thfloor.at>
+ * 2004-07-19: Herbert Pötzl <herbert@13thfloor.at>
  *     - code cleanup and extended debugging
  *
  * 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org>
@@ -488,7 +488,7 @@ static int s3c2410fb_set_par(struct fb_info *info)
                break;
        }
 
-       info->fix.line_length = (var->width * var->bits_per_pixel) / 8;
+       info->fix.line_length = (var->xres_virtual * var->bits_per_pixel) / 8;
 
        /* activate this new configuration */
 
@@ -1026,7 +1026,7 @@ static int s3c2410fb_resume(struct platform_device *dev)
        clk_enable(info->clk);
        msleep(1);
 
-       s3c2410fb_init_registers(info);
+       s3c2410fb_init_registers(fbinfo);
 
        return 0;
 }