Commit 9b3b6238 authored by Linus Walleij's avatar Linus Walleij

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

This reverts commit a4de4304.

The commit creates build errors.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f0b40863
...@@ -517,7 +517,7 @@ static int tegra_gpio_irq_set_wake(struct irq_data *d, unsigned int enable) ...@@ -517,7 +517,7 @@ static int tegra_gpio_irq_set_wake(struct irq_data *d, unsigned int enable)
} }
#endif #endif
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
...@@ -547,6 +547,19 @@ static int tegra_dbg_gpio_show(struct seq_file *s, void *unused) ...@@ -547,6 +547,19 @@ static int tegra_dbg_gpio_show(struct seq_file *s, void *unused)
} }
DEFINE_SHOW_ATTRIBUTE(tegra_dbg_gpio); 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 #endif
static const struct dev_pm_ops tegra_gpio_pm_ops = { static const struct dev_pm_ops tegra_gpio_pm_ops = {
...@@ -671,8 +684,7 @@ static int tegra_gpio_probe(struct platform_device *pdev) ...@@ -671,8 +684,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
} }
} }
debugfs_create_file("tegra_gpio", 0444, NULL, tgi, tegra_gpio_debuginit(tgi);
&tegra_dbg_gpio_fops);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment