Re: [PATCH] OMAPFB: Check in suspend/resume if framebuffer device is initialized.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jouni Högander <jouni.hogander@xxxxxxxxx> [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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux