]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Remove ifdefs for debugfs code
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 21 Feb 2012 06:50:42 +0000 (22:50 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Feb 2012 09:56:51 +0000 (09:56 +0000)
commitb99ef0205b367c64e45ddbff765e4314a8af00c5
tree7628c5bf0f4c0726a46145e7734d21d11f6bf006
parent607fe85d5b51b0b8ea97b2f7fce9e6c9ca90a938
regulator: Remove ifdefs for debugfs code

If CONFIG_DEBUG_FS=y debugfs functions will never return an
ERR_PTR. Instead they'll return NULL. The intent is to remove
ifdefs in calling code.

Update the code to reflect this. We gain an extra dentry pointer
per struct regulator and struct regulator_dev but that should be
ok because most distros have debugfs compiled in anyway.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
include/linux/regulator/driver.h