Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=eb3daa83c2f63743fb7597f620beac75e1ba5633 Commit: eb3daa83c2f63743fb7597f620beac75e1ba5633 Parent: 9965f5b137f11a7dce01b2c32874a4875f024306 Author: Antonino A. Daplas <[EMAIL PROTECTED]> AuthorDate: Tue Jul 17 04:05:41 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue Jul 17 10:23:12 2007 -0700
tgafb: actually allocate memory for the pseudo_palette No memory allocation was done for the pseudo_palette. Allocate one for it. Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]> Acked-by: "Maciej W. Rozycki" <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- drivers/video/tgafb.c | 2 +- include/video/tgafb.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c index 5c0dab6..89facb7 100644 --- a/drivers/video/tgafb.c +++ b/drivers/video/tgafb.c @@ -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) { diff --git a/include/video/tgafb.h b/include/video/tgafb.h index 03d0dbe..7bc5e2c 100644 --- a/include/video/tgafb.h +++ b/include/video/tgafb.h @@ -216,6 +216,7 @@ struct tga_par { u32 pll_freq; /* pixclock in mhz */ u32 bits_per_pixel; /* bits per pixel */ u32 sync_on_green; /* set if sync is on green */ + u32 palette[16]; }; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html