};
#ifdef CONFIG_FB_MXC_OVERLAY
-static u32 saved_as_ctrl;
-static u32 saved_as_next_buf;
static const struct fb_bitfield def_argb555[] = {
[RED] = {
}
}
+#ifdef CONFIG_PM_SLEEP
+static u32 saved_as_ctrl;
+static u32 saved_as_next_buf;
+
static void mxsfb_overlay_resume(struct mxsfb_info *fbi)
{
if (fbi->cur_blank != FB_BLANK_UNBLANK) {
clk_disable_pix(fbi);
}
}
+#endif
+
#else
static void mxsfb_overlay_init(struct mxsfb_info *fbi) {}
static void mxsfb_overlay_exit(struct mxsfb_info *fbi) {}
-static void mxsfb_overlay_resume(struct mxsfb_info *fbi) {}
-static void mxsfb_overlay_suspend(struct mxsfb_info *fbi) {}
#endif
static int mxsfb_probe(struct platform_device *pdev)
return 0;
}
+#endif
+#ifdef CONFIG_PM_SLEEP
static int mxsfb_suspend(struct device *pdev)
{
struct mxsfb_info *host = dev_get_drvdata(pdev);
return 0;
}
-#else
-#define mxsfb_runtime_suspend NULL
-#define mxsfb_runtime_resume NULL
-
-#define mxsfb_suspend NULL
-#define mxsfb_resume NULL
#endif
static const struct dev_pm_ops mxsfb_pm_ops = {