Revert "gpio: tegra: Clean-up debugfs initialisation"

This reverts commit a4de43049a.

The commit creates build errors.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij 2019-07-06 20:15:54 +02:00
parent f0b40863be
commit 9b3b623804

View File

@ -547,6 +547,19 @@ static int tegra_dbg_gpio_show(struct seq_file *s, void *unused)
}
DEFINE_SHOW_ATTRIBUTE(tegra_dbg_gpio);
static void tegra_gpio_debuginit(struct tegra_gpio_info *tgi)
{
debugfs_create_file("tegra_gpio", 0444, NULL, tgi,
&tegra_dbg_gpio_fops);
}
#else
static inline void tegra_gpio_debuginit(struct tegra_gpio_info *tgi)
{
}
#endif
static const struct dev_pm_ops tegra_gpio_pm_ops = {
@ -671,8 +684,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
}
}
debugfs_create_file("tegra_gpio", 0444, NULL, tgi,
&tegra_dbg_gpio_fops);
tegra_gpio_debuginit(tgi);
return 0;
}