disp: msm: sde: update check flags to handle CONFIG_DEBUG_FS
Add support to handle disabling of CONFIG_DEBUG_FS. Change-Id: I8c07434afc36edfae9bd9bc7880d07264eca7650 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -1132,7 +1132,6 @@ void sde_rsc_debug_dump(u32 mux_sel)
|
||||
if (rsc->hw_ops.debug_dump)
|
||||
rsc->hw_ops.debug_dump(rsc, mux_sel);
|
||||
}
|
||||
#endif /* defined(CONFIG_DEBUG_FS) */
|
||||
|
||||
static int _sde_debugfs_status_show(struct seq_file *s, void *data)
|
||||
{
|
||||
@@ -1581,6 +1580,11 @@ static void _sde_rsc_init_debugfs(struct sde_rsc_priv *rsc, char *name)
|
||||
debugfs_create_x32("debug_mode", 0600, rsc->debugfs_root,
|
||||
&rsc->debug_mode);
|
||||
}
|
||||
#else
|
||||
static void _sde_rsc_init_debugfs(struct sde_rsc_priv *rsc, char *name)
|
||||
{
|
||||
}
|
||||
#endif /* defined(CONFIG_DEBUG_FS) */
|
||||
|
||||
static void sde_rsc_deinit(struct platform_device *pdev,
|
||||
struct sde_rsc_priv *rsc)
|
||||
|
Reference in New Issue
Block a user