From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized. Date: Fri, 28 Mar 2008 15:45:26 +0200 Message-ID: <20080328134525.GQ24896@atomide.com> References: <20080328104027.GX24896@atomide.com> <1206709409-594-1-git-send-email-jouni.hogander@nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mho-02-bos.mailhop.org ([63.208.196.179]:61247 "EHLO mho-02-bos.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbYC1Np2 (ORCPT ); Fri, 28 Mar 2008 09:45:28 -0400 Content-Disposition: inline In-Reply-To: <1206709409-594-1-git-send-email-jouni.hogander@nokia.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Jouni =?iso-8859-1?Q?H=F6gander?= Cc: linux-omap@vger.kernel.org * Jouni H=F6gander [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=F6gander > --- > drivers/video/omap/omapfb_main.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/om= apfb_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_devic= e *pdev, pm_message_t mesg) > { > struct omapfb_device *fbdev =3D platform_get_drvdata(pdev); > =20 > - omapfb_blank(VESA_POWERDOWN, fbdev->fb_info[0]); > - > + if (fbdev !=3D NULL) > + omapfb_blank(VESA_POWERDOWN, fbdev->fb_info[0]); > return 0; > } > =20 > @@ -1849,7 +1849,8 @@ static int omapfb_resume(struct platform_device= *pdev) > { > struct omapfb_device *fbdev =3D platform_get_drvdata(pdev); > =20 > - omapfb_blank(VESA_NO_BLANKING, fbdev->fb_info[0]); > + if (fbdev !=3D NULL) > + omapfb_blank(VESA_NO_BLANKING, fbdev->fb_info[0]); > return 0; > } > =20 > --=20 > 1.5.3.5 >=20 > -- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html