]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/tgafb.c
Convert from class_device to device for drivers/video
[linux-2.6-omap-h63xx.git] / drivers / video / tgafb.c
index 5c0dab62809972b2b28bc3bd1929e8994e915cae..d292a37ec7d64a2d74e15eac5329fdc0bcf1c371 100644 (file)
@@ -849,7 +849,7 @@ tgafb_clut_imageblit(struct fb_info *info, const struct fb_image *image)
        u32 *palette = ((u32 *)info->pseudo_palette);
        unsigned long pos, line_length, i, j;
        const unsigned char *data;
-       void *regs_base, *fb_base;
+       void __iomem *regs_base, *fb_base;
 
        dx = image->dx;
        dy = image->dy;
@@ -1634,7 +1634,7 @@ tgafb_register(struct device *dev)
                      FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT;
        info->fbops = &tgafb_ops;
        info->screen_base = par->tga_fb_base;
-       info->pseudo_palette = (void *)(par + 1);
+       info->pseudo_palette = par->palette;
 
        /* This should give a reasonable default video mode.  */
        if (tga_bus_pci) {