From 997f4a103b764f37aa081ad1956bcd1dd8c5da81 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 17 Mar 2023 15:05:33 +0900 Subject: [PATCH] amlogic: osd: Block undefined INSTABOOT code with ifdef 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 --- drivers/amlogic/media/osd/osd_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amlogic/media/osd/osd_fb.c b/drivers/amlogic/media/osd/osd_fb.c index 05459936f3c1..51a8f93cb4b1 100644 --- a/drivers/amlogic/media/osd/osd_fb.c +++ b/drivers/amlogic/media/osd/osd_fb.c @@ -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) { -- 2.34.1