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 <sultan@kerneltoast.com>
This commit is contained in:
Sultan Alsawaf 2023-05-29 19:42:00 -07:00 committed by Ksawlii
parent a11f1b3dd0
commit 5599f77e14

View file

@ -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);