mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
platform/x86/amd: pmc: remove CONFIG_DEBUG_FS checks
Since linux/debugfs.h already has the stubs for the used debugfs functions when debugfs is not enabled, remove the #ifdef CONFIG_DEBUG_FS checks. Signed-off-by: Shyam Sundar S K <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
This commit is contained in:
committed by
Hans de Goede
parent
a776bf77c9
commit
b37fe34c83
@@ -153,9 +153,7 @@ struct amd_pmc_dev {
|
||||
struct device *dev;
|
||||
struct pci_dev *rdev;
|
||||
struct mutex lock; /* generic mutex lock */
|
||||
#if IS_ENABLED(CONFIG_DEBUG_FS)
|
||||
struct dentry *dbgfs_dir;
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
};
|
||||
|
||||
static bool enable_stb;
|
||||
@@ -429,7 +427,6 @@ static struct attribute *pmc_attrs[] = {
|
||||
};
|
||||
ATTRIBUTE_GROUPS(pmc);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static int smu_fw_info_show(struct seq_file *s, void *unused)
|
||||
{
|
||||
struct amd_pmc_dev *dev = s->private;
|
||||
@@ -544,15 +541,6 @@ static void amd_pmc_dbgfs_register(struct amd_pmc_dev *dev)
|
||||
&amd_pmc_stb_debugfs_fops);
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline void amd_pmc_dbgfs_register(struct amd_pmc_dev *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void amd_pmc_dbgfs_unregister(struct amd_pmc_dev *dev)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
static void amd_pmc_dump_registers(struct amd_pmc_dev *dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user