Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9fb338b authored by Lloyd Atkinson's avatar Lloyd Atkinson
Browse files

drm/msm/sde: fix compilation issues when debugfs disabled



Fix various compilation issues that occur when debugfs is
disabled in the build configuration.

Change-Id: Ifd05e8dae47ed0eae237a67f30244cc32619578a
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 79d42bd7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2273,7 +2273,6 @@ static int _sde_crtc_init_debugfs(struct drm_crtc *crtc)

static void _sde_crtc_destroy_debugfs(struct drm_crtc *crtc)
{
	return 0;
}
#endif /* CONFIG_DEBUG_FS */

+2 −2
Original line number Diff line number Diff line
@@ -1369,6 +1369,7 @@ int sde_encoder_helper_hw_release(struct sde_encoder_phys *phys_enc,
	return 0;
}

#ifdef CONFIG_DEBUG_FS
static int _sde_encoder_status_show(struct seq_file *s, void *data)
{
	struct sde_encoder_virt *sde_enc;
@@ -1414,7 +1415,6 @@ static int _sde_encoder_status_show(struct seq_file *s, void *data)
	return 0;
}

#ifdef CONFIG_DEBUG_FS
static int _sde_encoder_debugfs_status_open(struct inode *inode,
		struct file *file)
{
@@ -1590,7 +1590,7 @@ static int _sde_encoder_init_debugfs(struct drm_encoder *drm_enc)
	return 0;
}

static _sde_encoder_destroy_debugfs(struct drm_encoder *drm_enc)
static void _sde_encoder_destroy_debugfs(struct drm_encoder *drm_enc)
{
}
#endif
+0 −12
Original line number Diff line number Diff line
@@ -324,18 +324,6 @@ static int _sde_debugfs_init(struct sde_kms *sde_kms)

static void _sde_debugfs_destroy(struct sde_kms *sde_kms)
{
	return 0;
}

static void sde_debugfs_danger_destroy(struct sde_kms *sde_kms,
		struct dentry *parent)
{
}

static int sde_debugfs_danger_init(struct sde_kms *sde_kms,
		struct dentry *parent)
{
	return 0;
}
#endif

+1 −1
Original line number Diff line number Diff line
@@ -2916,7 +2916,7 @@ int sde_dbg_debugfs_register(struct dentry *debugfs_root)
	return 0;
}

#if defined(CONFIG_DEBUG_FS)
#ifdef CONFIG_DEBUG_FS
static void _sde_dbg_debugfs_destroy(void)
{
	debugfs_remove_recursive(sde_dbg_base.root);