summaryrefslogtreecommitdiff
path: root/drivers/regulator/max77686.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-10-17 08:17:03 -0700
committerMark Brown <broonie@kernel.org>2015-03-27 16:14:18 -0700
commita9eaa8130707d4013fb109b80323489c0d0111ac (patch)
tree8854c4c7a3c10df8ee0731ceeb0db7328f575c30 /drivers/regulator/max77686.c
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
regulator: Ensure unique regulator debugfs directory names
If multiple regulator devices of the same type exist in a system, the regulator driver assigns generic names for the regulators it provides, and debugfs is enabled, the regulator subsystem attempts to create multiple entries with the same name in the regulator debugfs directory. This fails for all but the first regulator, resulting in multiple "Failed to create debugfs directory" log entries. To avoid the problem, prepend the debugfs directory name for a regulator with its parent device name if available, but only if no explicit regulator name was provided. Cc: Alan Tull <atull@opensource.altera.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max77686.c')
0 files changed, 0 insertions, 0 deletions