From 5599f77e14500695907f985ee420e207cde546eb Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Mon, 29 May 2023 19:42:00 -0700 Subject: [PATCH] cal-if: Fix compilation when debugfs is disabled Add a stub for cal_register_pd_lookup_cmu_id() when debugfs is disabled to fix CONFIG_DEBUG_FS=n compilation. Signed-off-by: Sultan Alsawaf --- include/soc/samsung/cal-if.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/soc/samsung/cal-if.h b/include/soc/samsung/cal-if.h index 2d1ab2667..f4db257d2 100755 --- a/include/soc/samsung/cal-if.h +++ b/include/soc/samsung/cal-if.h @@ -126,7 +126,12 @@ extern int cal_chub_reset_release(void); extern int cal_init(void); extern int cal_if_init(void *); +#ifdef CONFIG_DEBUG_FS extern void cal_register_pd_lookup_cmu_id(void *(*func)(u32 cmu_id)); +#else +static inline +void cal_register_pd_lookup_cmu_id(void *(*func)(u32 cmu_id)) { } +#endif /* It is for debugging. */ #define cal_vclk_dbg_info(a) do{} while(0); //extern void cal_vclk_dbg_info(unsigned int id);