]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite97ce5326c84a955af93246175ef35c3e5ae6c64
tree1ae76cff96fcc95562e316da4907de7b0ca1f91a
parenta4b8f37906a4342900044e345b303695fe79cd0d
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