Skip to content

Commit

Permalink
omapfb: fix argument of blank operation
Browse files Browse the repository at this point in the history
The blank operation should receive FB_BLANK_POWERDOWN, not VESA_POWERDOWN.

Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Andrea Righi <righi.andrea@gmail.com>
Acked-by: Trilok Soni <soni.trilok@gmail.com>
Cc: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Felipe Contreras authored and Linus Torvalds committed Apr 1, 2009
1 parent 23b7365 commit c958557
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/video/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static int omapfb_blank(int blank, struct fb_info *fbi)

omapfb_rqueue_lock(fbdev);
switch (blank) {
case VESA_NO_BLANKING:
case FB_BLANK_UNBLANK:
if (fbdev->state == OMAPFB_SUSPENDED) {
if (fbdev->ctrl->resume)
fbdev->ctrl->resume();
Expand All @@ -349,7 +349,7 @@ static int omapfb_blank(int blank, struct fb_info *fbi)
do_update = 1;
}
break;
case VESA_POWERDOWN:
case FB_BLANK_POWERDOWN:
if (fbdev->state == OMAPFB_ACTIVE) {
fbdev->panel->disable(fbdev->panel);
if (fbdev->ctrl->suspend)
Expand Down Expand Up @@ -1818,7 +1818,7 @@ static int omapfb_suspend(struct platform_device *pdev, pm_message_t mesg)
{
struct omapfb_device *fbdev = platform_get_drvdata(pdev);

omapfb_blank(VESA_POWERDOWN, fbdev->fb_info[0]);
omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]);

return 0;
}
Expand All @@ -1828,7 +1828,7 @@ static int omapfb_resume(struct platform_device *pdev)
{
struct omapfb_device *fbdev = platform_get_drvdata(pdev);

omapfb_blank(VESA_NO_BLANKING, fbdev->fb_info[0]);
omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]);
return 0;
}

Expand Down

0 comments on commit c958557

Please sign in to comment.