linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] mx3fb: Fix compilation with CONFIG_PM
@ 2009-04-08  9:45 Sascha Hauer
  2009-04-08 10:08 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2009-04-08  9:45 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-fbdev-devel

Hi Guennadi,

The following fixes mx3fb compilation with CONFIG_PM

Sascha

From cb9f64e5c9bc108d6b6bcf78ae19df45107d766c Mon Sep 17 00:00:00 2001
From: Sascha Hauer <s.hauer@pengutronix.de>
Date: Wed, 8 Apr 2009 11:41:49 +0200
Subject: mx3fb: Fix compilation with CONFIG_PM

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/video/mx3fb.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index 21b3692..9894de1 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -1152,11 +1152,11 @@ static struct fb_ops mx3fb_ops = {
  */
 static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
 {
-	struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
-	struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
+	struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
+	struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
 
 	acquire_console_sem();
-	fb_set_suspend(drv_data->fbi, 1);
+	fb_set_suspend(mx3fb->fbi, 1);
 	release_console_sem();
 
 	if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
@@ -1172,16 +1172,16 @@ static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
  */
 static int mx3fb_resume(struct platform_device *pdev)
 {
-	struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
-	struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
+	struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
+	struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
 
 	if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
 		sdc_enable_channel(mx3_fbi);
-		sdc_set_brightness(mx3fb, drv_data->backlight_level);
+		sdc_set_brightness(mx3fb, mx3fb->backlight_level);
 	}
 
 	acquire_console_sem();
-	fb_set_suspend(drv_data->fbi, 0);
+	fb_set_suspend(mx3fb->fbi, 0);
 	release_console_sem();
 
 	return 0;
-- 
1.6.2.1

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] mx3fb: Fix compilation with CONFIG_PM
  2009-04-08  9:45 [patch] mx3fb: Fix compilation with CONFIG_PM Sascha Hauer
@ 2009-04-08 10:08 ` Guennadi Liakhovetski
  0 siblings, 0 replies; 2+ messages in thread
From: Guennadi Liakhovetski @ 2009-04-08 10:08 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: linux-fbdev-devel

On Wed, 8 Apr 2009, Sascha Hauer wrote:

> Hi Guennadi,
> 
> The following fixes mx3fb compilation with CONFIG_PM
> 
> Sascha
> 
> >From cb9f64e5c9bc108d6b6bcf78ae19df45107d766c Mon Sep 17 00:00:00 2001
> From: Sascha Hauer <s.hauer@pengutronix.de>
> Date: Wed, 8 Apr 2009 11:41:49 +0200
> Subject: mx3fb: Fix compilation with CONFIG_PM
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

> ---
>  drivers/video/mx3fb.c |   14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
> index 21b3692..9894de1 100644
> --- a/drivers/video/mx3fb.c
> +++ b/drivers/video/mx3fb.c
> @@ -1152,11 +1152,11 @@ static struct fb_ops mx3fb_ops = {
>   */
>  static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
>  {
> -	struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
> -	struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
> +	struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
> +	struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
>  
>  	acquire_console_sem();
> -	fb_set_suspend(drv_data->fbi, 1);
> +	fb_set_suspend(mx3fb->fbi, 1);
>  	release_console_sem();
>  
>  	if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
> @@ -1172,16 +1172,16 @@ static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
>   */
>  static int mx3fb_resume(struct platform_device *pdev)
>  {
> -	struct mx3fb_data *drv_data = platform_get_drvdata(pdev);
> -	struct mx3fb_info *mx3_fbi = drv_data->fbi->par;
> +	struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
> +	struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
>  
>  	if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
>  		sdc_enable_channel(mx3_fbi);
> -		sdc_set_brightness(mx3fb, drv_data->backlight_level);
> +		sdc_set_brightness(mx3fb, mx3fb->backlight_level);
>  	}
>  
>  	acquire_console_sem();
> -	fb_set_suspend(drv_data->fbi, 0);
> +	fb_set_suspend(mx3fb->fbi, 0);
>  	release_console_sem();
>  
>  	return 0;
> -- 
> 1.6.2.1
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-08 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08  9:45 [patch] mx3fb: Fix compilation with CONFIG_PM Sascha Hauer
2009-04-08 10:08 ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).