All of lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@nokia.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Krzysztof Helt <krzysztof.h1@poczta.fm>,
	Antonino Daplas <adaplas@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	Tomi Valkeinen <Tomi.Valkeinen@nokia.com>
Subject: [PATCH 17/20] omapfb: suspend/resume only if FB device is already initialized
Date: Wed, 24 Jun 2009 14:33:42 +0300	[thread overview]
Message-ID: <f9ed866c0fe8112e1b18f2b90a52e41b23413982.1245842329.git.imre.deak@nokia.com> (raw)
In-Reply-To: <a9da40529f3dc3d0bf304c4d15cb45f1af8ae150.1245842329.git.imre.deak@nokia.com>
In-Reply-To: <34904fad6190ff9d35eb942460ece639f4b7d58f.1245842329.git.imre.deak@nokia.com>

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>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
---
 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 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;
 }
 
-- 
1.6.3.2


  reply	other threads:[~2009-06-24 11:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 11:33 [PATCH 00/20] omapfb: Add support for new LCDs / misc fixes Imre Deak
2009-06-24 11:33 ` [PATCH 01/20] omapfb: Add support for the Apollon LCD Imre Deak
2009-06-24 11:33   ` [PATCH 02/20] omapfb: Add support for MIPI-DCS compatible LCDs Imre Deak
2009-06-24 11:33     ` [PATCH 03/20] omapfb: Add support for the Amstrad Delta LCD Imre Deak
2009-06-24 11:33       ` [PATCH 04/20] omapfb: Add support for the 2430SDP LCD Imre Deak
2009-06-24 11:33         ` [PATCH 05/20] omapfb: Add support for the OMAP2EVM LCD Imre Deak
2009-06-24 11:33           ` [PATCH 06/20] omapfb: Add support for the 3430SDP LCD Imre Deak
2009-06-24 11:33             ` [PATCH 07/20] omapfb: Add support for the OMAP3 EVM LCD Imre Deak
2009-06-24 11:33               ` [PATCH 08/20] omapfb: Add support for the OMAP3 Beagle DVI output Imre Deak
2009-06-24 11:33                 ` [PATCH 09/20] omapfb: Add support for the Gumstix Overo LCD Imre Deak
2009-06-24 11:33                   ` [PATCH 10/20] omapfb: Add support for the ZOOM MDK LCD Imre Deak
2009-06-24 11:33                     ` [PATCH 11/20] omapfb: Add support for rotation on the Blizzard LCD ctrl Imre Deak
2009-06-24 11:33                       ` [PATCH 12/20] N770: Enable LCD MIPI-DCS in Kconfig Imre Deak
2009-06-24 11:33                         ` [PATCH 13/20] omapfb: dispc: Various typo fixes Imre Deak
2009-06-24 11:33                           ` [PATCH 14/20] omapfb: dispc: Disable iface clocks along with func clocks Imre Deak
2009-06-24 11:33                             ` [PATCH 15/20] omapfb: dispc: Enable wake up capability Imre Deak
2009-06-24 11:33                               ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Imre Deak
2009-06-24 11:33                                 ` Imre Deak [this message]
2009-06-24 11:33                                   ` [PATCH 18/20] omapfb: Fix coding style / remove dead line Imre Deak
2009-06-24 11:33                                     ` [PATCH 19/20] omapfb: Add FB manual update option to Kconfig Imre Deak
2009-06-24 11:33                                       ` [PATCH 20/20] omapfb: HWA742: fix pointer to be const Imre Deak
2009-06-24 12:16                                 ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Felipe Balbi
2009-06-24 13:35                                   ` Imre Deak
  -- strict thread matches above, loose matches on Subject: below --
2009-06-04 17:52 [PATCH 00/20] omapfb: Add support for new LCDs / misc fixes Imre Deak
2009-06-04 17:52 ` [PATCH 01/20] omapfb: Add support for the Apollon LCD Imre Deak
2009-06-04 17:52   ` [PATCH 02/20] omapfb: Add support for MIPI-DCS compatible LCDs Imre Deak
2009-06-04 17:52     ` [PATCH 03/20] N770: Enable LCD MIPI-DCS in Kconfig Imre Deak
2009-06-04 17:52       ` [PATCH 04/20] omapfb: Add support for the Amstrad Delta LCD Imre Deak
2009-06-04 17:52         ` [PATCH 05/20] omapfb: Add support for the 2430SDP LCD Imre Deak
2009-06-04 17:52           ` [PATCH 06/20] omapfb: Add support for the OMAP2EVM LCD Imre Deak
2009-06-04 17:52             ` [PATCH 07/20] omapfb: Add support for the 3430SDP LCD Imre Deak
2009-06-04 17:52               ` [PATCH 08/20] omapfb: Add support for the OMAP3 EVM LCD Imre Deak
2009-06-04 17:52                 ` [PATCH 09/20] omapfb: Add support for the OMAP3 Beagle DVI output Imre Deak
2009-06-04 17:52                   ` [PATCH 10/20] omapfb: Add support for the Gumstix Overo LCD Imre Deak
2009-06-04 17:52                     ` [PATCH 11/20] omapfb: Add support for the ZOOM MDK LCD Imre Deak
2009-06-04 17:52                       ` [PATCH 12/20] omapfb: Add support for rotation on the Blizzard LCD ctrl Imre Deak
2009-06-04 17:52                         ` [PATCH 13/20] omapfb: dispc: Various typo fixes Imre Deak
2009-06-04 17:52                           ` [PATCH 14/20] omapfb: dispc: Disable iface clocks along with func clocks Imre Deak
2009-06-04 17:52                             ` [PATCH 15/20] omapfb: dispc: Enable wake up capability Imre Deak
2009-06-04 17:52                               ` [PATCH 16/20] omapfb: dispc: Allow multiple external IRQ handlers Imre Deak
2009-06-04 17:52                                 ` [PATCH 17/20] omapfb: suspend/resume only if FB device is already initialized Imre Deak

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=f9ed866c0fe8112e1b18f2b90a52e41b23413982.1245842329.git.imre.deak@nokia.com \
    --to=imre.deak@nokia.com \
    --cc=Tomi.Valkeinen@nokia.com \
    --cc=adaplas@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=krzysztof.h1@poczta.fm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.