diff --git a/drivers/platform/tegra/aon/tegra-aon-debug.c b/drivers/platform/tegra/aon/tegra-aon-debug.c index 0b524415..59cdcaeb 100644 --- a/drivers/platform/tegra/aon/tegra-aon-debug.c +++ b/drivers/platform/tegra/aon/tegra-aon-debug.c @@ -787,6 +787,7 @@ clean: return PTR_ERR(d); } +#if defined(CONFIG_DEBUG_FS) int tegra_aon_debugfs_create(struct tegra_aon *aon) { struct tegra_aondbg *aondbg = &aondbg_dev; @@ -866,3 +867,4 @@ void tegra_aon_debugfs_remove(struct tegra_aon *aon) mbox_free_channel(aondbg->mbox); debugfs_remove_recursive(aondbg->aon_root); } +#endif