PM / OPP: Don't create debugfs "supply-0" directory unnecessarily
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 23 May 2017 04:02:13 +0000 (09:32 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Jun 2017 01:15:30 +0000 (03:15 +0200)
commit1fae788ed640e2a961c2edab54bfd56c73e2506a
tree1ae76cff96fcc95562e316da4907de7b0ca1f91a
parent688a48b0d27000167e0450bc1243e29a560395ca
PM / OPP: Don't create debugfs "supply-0" directory unnecessarily

We create "supply-0" debugfs directory even if the device doesn't do
voltage scaling. That looks confusing, as if the regulator is found but
we never managed to get voltage levels for it.

Avoid creating such a directory unnecessarily.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/debugfs.c