Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20220922175608.630046-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Shyam Sundar S K and committed by
Hans de Goede
b37fe34c a776bf77

-12
-12
drivers/platform/x86/amd/pmc.c
··· 153 153 struct device *dev; 154 154 struct pci_dev *rdev; 155 155 struct mutex lock; /* generic mutex lock */ 156 - #if IS_ENABLED(CONFIG_DEBUG_FS) 157 156 struct dentry *dbgfs_dir; 158 - #endif /* CONFIG_DEBUG_FS */ 159 157 }; 160 158 161 159 static bool enable_stb; ··· 427 429 }; 428 430 ATTRIBUTE_GROUPS(pmc); 429 431 430 - #ifdef CONFIG_DEBUG_FS 431 432 static int smu_fw_info_show(struct seq_file *s, void *unused) 432 433 { 433 434 struct amd_pmc_dev *dev = s->private; ··· 541 544 &amd_pmc_stb_debugfs_fops); 542 545 } 543 546 } 544 - #else 545 - static inline void amd_pmc_dbgfs_register(struct amd_pmc_dev *dev) 546 - { 547 - } 548 - 549 - static inline void amd_pmc_dbgfs_unregister(struct amd_pmc_dev *dev) 550 - { 551 - } 552 - #endif /* CONFIG_DEBUG_FS */ 553 547 554 548 static void amd_pmc_dump_registers(struct amd_pmc_dev *dev) 555 549 {