]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Fix regulator_summary for deviceless consumers
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 14 Feb 2017 15:31:03 +0000 (17:31 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 16 Feb 2017 12:44:58 +0000 (12:44 +0000)
commitbfdadcfa16a91555b7c1c1dc009ccf70f5ad909f
tree7acfe205c917b10dbf77f3616cb6f5f4de6d37e0
parentfb6395070d869d82ecdf279cff812fd06a8a892a
regulator: Fix regulator_summary for deviceless consumers

It is allowed to call regulator_get with a NULL dev argument
(_regulator_get explicitly checks for it) but this causes an error later
when printing /sys/kernel/debug/regulator_summary.

Fix this by explicitly handling "deviceless" consumers in the debugfs code.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/regulator/core.c