public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Jouni Högander" <jouni.hogander@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.
Date: Fri, 28 Mar 2008 15:45:26 +0200	[thread overview]
Message-ID: <20080328134525.GQ24896@atomide.com> (raw)
In-Reply-To: <1206709409-594-1-git-send-email-jouni.hogander@nokia.com>

* Jouni Högander <jouni.hogander@nokia.com> [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@nokia.com>
> ---
>  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@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" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-03-28 13:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 11:58 [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized Jouni Högander
2008-03-28 10:40 ` Tony Lindgren
2008-03-28 13:03   ` Jouni Högander
2008-03-28 13:45     ` Tony Lindgren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080328134525.GQ24896@atomide.com \
    --to=tony@atomide.com \
    --cc=jouni.hogander@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox