mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
tegra: soc_hwpm: Fix debugfs compilation errors
The member debugfs_root is only defined in struct tegra_soc_hwpm when debugfs is enabled. So its use when debugfs is disabled leads to compilation errors which is seen in function tegra_soc_hwpm_debugfs_init. This function when debugfs disabled just sets the debugfs_root to NULL. This has been removed to fix the compilation error. Bug 200755555 Change-Id: I6e4fa7e330dbe468ba216e98d29d58877e250fa4 Signed-off-by: Sahil Mukund Patki <spatki@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2616087 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
8c4e714e52
commit
649b353b01
@@ -102,10 +102,7 @@ extern const struct file_operations tegra_soc_hwpm_ops;
|
|||||||
void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm);
|
void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm);
|
||||||
void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm);
|
void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm);
|
||||||
#else
|
#else
|
||||||
static inline void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm)
|
static inline void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm) {}
|
||||||
{
|
|
||||||
hwpm->debugfs_root = NULL;
|
|
||||||
}
|
|
||||||
static inline void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm) {}
|
static inline void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm) {}
|
||||||
#endif /* CONFIG_DEBUG_FS */
|
#endif /* CONFIG_DEBUG_FS */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user