Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 815
b: refs/heads/master
c: eca02b0
h: refs/heads/master
i:
  813: d28de5d
  811: b881e74
  807: 9e4be59
  799: f267d99
v: v3
  • Loading branch information
Russell King committed May 3, 2005
1 parent 1dacaba commit 6956eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f9c381fa3e0b9b9042e310c69df87eaf9b46ea4
refs/heads/master: eca02b0c1dc1da374216128157747d8ed994e5ef
8 changes: 4 additions & 4 deletions trunk/drivers/video/cyber2000fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ struct cfb_info {
*/
u_char ramdac_ctrl;
u_char ramdac_powerdown;

u32 pseudo_palette[16];
};

static char *default_font = "Acorn8x8";
Expand Down Expand Up @@ -1223,9 +1225,7 @@ cyberpro_alloc_fb_info(unsigned int id, char *name)
{
struct cfb_info *cfb;

cfb = kmalloc(sizeof(struct cfb_info) +
sizeof(u32) * 16, GFP_KERNEL);

cfb = kmalloc(sizeof(struct cfb_info), GFP_KERNEL);
if (!cfb)
return NULL;

Expand Down Expand Up @@ -1281,7 +1281,7 @@ cyberpro_alloc_fb_info(unsigned int id, char *name)

cfb->fb.fbops = &cyber2000fb_ops;
cfb->fb.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
cfb->fb.pseudo_palette = (void *)(cfb + 1);
cfb->fb.pseudo_palette = cfb->pseudo_palette;

fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0);

Expand Down

0 comments on commit 6956eba

Please sign in to comment.