amlogic: osd: Block undefined INSTABOOT code with ifdef 10/290010/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Mar 2023 06:05:33 +0000 (15:05 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Mar 2023 06:05:38 +0000 (15:05 +0900)
In osd code, there is not defined INSTABOOT code block, but some
code is not wrapped with the config option #ifdef. Fix to block
INSTABOOT code block with ifdef properly.

Change-Id: I6b87e3f6448d70a5fff6afa15414a9a2b7490ad7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/amlogic/media/osd/osd_fb.c

index 0545993..51a8f93 100644 (file)
@@ -3874,6 +3874,7 @@ EXPORT_SYMBOL(osd_resume_early);
 #endif
 
 #ifdef CONFIG_HIBERNATION
+#ifdef CONFIG_INSTABOOT
 static int osd_realdata_save(void)
 {
        osd_realdata_save_hw();
@@ -3889,6 +3890,7 @@ static struct instaboot_realdata_ops osd_realdata_ops = {
        .save           = osd_realdata_save,
        .restore        = osd_realdata_restore,
 };
+#endif
 
 static int osd_freeze(struct device *dev)
 {