Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83569
b: refs/heads/master
c: b1230ee
h: refs/heads/master
i:
  83567: 7ec3302
v: v3
  • Loading branch information
Magnus Damm authored and Linus Torvalds committed Feb 6, 2008
1 parent aacf2d0 commit 5ce4c9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfcffa467b4112fa6f1631c9d6bf7759c3bbe75a
refs/heads/master: b1230ee50a9903a987feaad767fb71e2fd173894
8 changes: 8 additions & 0 deletions trunk/drivers/video/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ static int sm501fb_start(struct sm501fb_info *info,
{
struct resource *res;
struct device *dev;
int k;
int ret;

info->dev = dev = &pdev->dev;
Expand Down Expand Up @@ -1337,6 +1338,13 @@ static int sm501fb_start(struct sm501fb_info *info,

info->fbmem_len = (res->end - res->start)+1;

/* clear framebuffer memory - avoids garbage data on unused fb */
memset(info->fbmem, 0, info->fbmem_len);

/* clear palette ram - undefined at power on */
for (k = 0; k < (256 * 3); k++)
writel(0, info->regs + SM501_DC_PANEL_PALETTE + (k * 4));

/* enable display controller */
sm501_unit_power(dev->parent, SM501_GATE_DISPLAY, 1);

Expand Down

0 comments on commit 5ce4c9a

Please sign in to comment.