There are cases when panel and crt both are not defined and only one of
them is defined and initialized. In such cases, suspend or resume it
only if it is defined.
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
struct fb_info *fbi = info->fb[head];
struct sm501fb_par *par = fbi->par;
+ if (!fbi)
+ return 0;
+
if (par->screen.size == 0)
return 0;
struct fb_info *fbi = info->fb[head];
struct sm501fb_par *par = fbi->par;
+ if (!fbi)
+ return;
+
if (par->screen.size == 0)
return;