]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-tegra: Do not create the debugfs entry by default
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Mon, 16 Nov 2015 16:07:10 +0000 (16:07 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 14:18:51 +0000 (15:18 +0100)
commit16fc77b185fe0fe7c1197e1516927088cd8aa403
tree3c9bfa9940b10e9f85db3a139303310c7c8ae4f3
parentf7ecacc050d1afd89a66630ed5659c1fecfa7296
gpio-tegra: Do not create the debugfs entry by default

The tegra gpio driver creates the debugfs entry irrespective of
whether the device exists or not. This is enabled on an arm64_defconfig
and leaves an entry in debugfs on all platforms where it is not
useful. This patch fixes the issue by creating the entry only when
a device exists.

Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c