* [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.
@ 2008-03-26 11:58 Jouni Högander
2008-03-28 10:40 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Jouni Högander @ 2008-03-26 11:58 UTC (permalink / raw)
To: linux-omap
Check wether fbdev is NULL in suspend / resume functions. Fbdev is
NULL, if there is no lcd or it is not enabled in configuration.
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.
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
0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2008-03-28 10:40 UTC (permalink / raw)
To: Jouni Högander; +Cc: linux-omap
* Jouni Högander <jouni.hogander@nokia.com> [080326 13:59]:
> Check wether fbdev is NULL in suspend / resume functions. Fbdev is
> NULL, if there is no lcd or it is not enabled in configuration.
This one is missing Signed-off-by also.
Tony
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.
2008-03-28 10:40 ` Tony Lindgren
@ 2008-03-28 13:03 ` Jouni Högander
2008-03-28 13:45 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Jouni Högander @ 2008-03-28 13:03 UTC (permalink / raw)
To: linux-omap
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>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.
2008-03-28 13:03 ` Jouni Högander
@ 2008-03-28 13:45 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2008-03-28 13:45 UTC (permalink / raw)
To: Jouni Högander; +Cc: linux-omap
* 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-28 13:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox