Commit 91ad4909 authored by Jouni Högander's avatar Jouni Högander Committed by Tony Lindgren

OMAPFB: Check in suspend/resume if framebuffer device is initialized.

Check wether fbdev is NULL in suspend / resume functions. Fbdev is
NULL, if there is no lcd or it is not enabled in configuration.
Signed-off-by: default avatarJouni Högander <jouni.hogander@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0136a812
......@@ -1839,8 +1839,8 @@ static int omapfb_suspend(struct platform_device *pdev, pm_message_t mesg)
{
struct omapfb_device *fbdev = platform_get_drvdata(pdev);
if (fbdev != NULL)
omapfb_blank(VESA_POWERDOWN, fbdev->fb_info[0]);
return 0;
}
......@@ -1849,6 +1849,7 @@ static int omapfb_resume(struct platform_device *pdev)
{
struct omapfb_device *fbdev = platform_get_drvdata(pdev);
if (fbdev != NULL)
omapfb_blank(VESA_NO_BLANKING, fbdev->fb_info[0]);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment