summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2017-02-14 17:31:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:37:25 +0100
commit5cc0cd0e3a5a73c2d54dfe8c0f79556ffb970af0 (patch)
tree7c25415c7974a7e5aac7bf1d90a6298cf01b7fb4 /include/linux
parent272d60bfce0e8222d2b1fe479a98fdf3bf7e05d0 (diff)
regulator: Fix regulator_summary for deviceless consumers
commit e42a46b6f52473661ad192f76a128a68fe301df4 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions