aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap')
-rw-r--r--drivers/video/omap/omapfb_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index db05f7e316e7..7eab0f0b4ccf 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -1846,8 +1846,8 @@ static int omapfb_suspend(struct platform_device *pdev, pm_message_t mesg)
1846{ 1846{
1847 struct omapfb_device *fbdev = platform_get_drvdata(pdev); 1847 struct omapfb_device *fbdev = platform_get_drvdata(pdev);
1848 1848
1849 omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]); 1849 if (fbdev != NULL)
1850 1850 omapfb_blank(FB_BLANK_POWERDOWN, fbdev->fb_info[0]);
1851 return 0; 1851 return 0;
1852} 1852}
1853 1853
@@ -1856,7 +1856,8 @@ static int omapfb_resume(struct platform_device *pdev)
1856{ 1856{
1857 struct omapfb_device *fbdev = platform_get_drvdata(pdev); 1857 struct omapfb_device *fbdev = platform_get_drvdata(pdev);
1858 1858
1859 omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]); 1859 if (fbdev != NULL)
1860 omapfb_blank(FB_BLANK_UNBLANK, fbdev->fb_info[0]);
1860 return 0; 1861 return 0;
1861} 1862}
1862 1863