* Jouni Högander <jouni.hogander@xxxxxxxxx> [080328 15:13]: > Check wether fbdev is NULL in suspend / resume functions. Fbdev is > NULL, if there is no lcd or it is not enabled in configuration. Thanks, pushing today. Tony > Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx> > --- > drivers/video/omap/omapfb_main.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c > index f66b81a..139c84c 100644 > --- a/drivers/video/omap/omapfb_main.c > +++ b/drivers/video/omap/omapfb_main.c > @@ -1839,8 +1839,8 @@ 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]); > - > + if (fbdev != NULL) > + omapfb_blank(VESA_POWERDOWN, fbdev->fb_info[0]); > return 0; > } > > @@ -1849,7 +1849,8 @@ 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]); > + if (fbdev != NULL) > + omapfb_blank(VESA_NO_BLANKING, fbdev->fb_info[0]); > return 0; > } > > -- > 1.5.3.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html