Message ID | 20541a2436ab1399a93c28197244bb05e8657859.1244131952.git.imre.deak@nokia.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Tomi Valkeinen |
Headers | show |
On Thu, 4 Jun 2009 20:52:42 +0300 Imre Deak <imre.deak@nokia.com> wrote: > From: Jouni Högander <jouni.hogander@nokia.com> > > 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: Jouni Högander <jouni.hogander@nokia.com> > Signed-off-by: Tony Lindgren <tony@atomide.com> > Signed-off-by: Imre Deak <imre.deak@nokia.com> > --- > drivers/video/omap/omapfb_main.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> ---------------------------------------------------------------------- Zostan dziennikarzem obywatelskim! Sprawd¼ sie >>> http://link.interia.pl/f21b9 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index 5b04b9c..098177b 100644 --- a/drivers/video/omap/omapfb_main.c +++ b/drivers/video/omap/omapfb_main.c @@ -1842,8 +1842,8 @@ static int omapfb_suspend(struct platform_device *pdev, pm_message_t mesg) { struct omapfb_device *fbdev = platform_get_drvdata(pdev); - omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]); - + if (fbdev != NULL) + omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]); return 0; } @@ -1852,7 +1852,8 @@ static int omapfb_resume(struct platform_device *pdev) { struct omapfb_device *fbdev = platform_get_drvdata(pdev); - omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]); + if (fbdev != NULL) + omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]); return 0; }