From: Guenter Roeck Date: Fri, 17 Oct 2014 15:17:03 +0000 (-0700) Subject: regulator: Ensure unique regulator debugfs directory names X-Git-Tag: omap-for-v4.1/fixes-rc1~175^2~4^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9eaa8130707d4013fb109b80323489c0d0111ac;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck Signed-off-by: Mark Brown --- Reading git-diff-tree failed