diff options
| author | David Collins <collinsd@codeaurora.org> | 2015-08-25 10:52:38 -0700 |
|---|---|---|
| committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:37 -0800 |
| commit | 40456168dbe8bf88d0ac19ed7ae1a1cbead74347 (patch) | |
| tree | 81e7c32ac3274f77b186dc256f7049095f08d703 /include/linux | |
| parent | 9fbac0b19d530ef9980e83f68c1ebb0a7cd9d9a3 (diff) | |
regulator: core: put debugfs consumer handle when unregistering a regulator
Ensure that regulator_put() is called on the core debugfs
consumer pointer for a given regulator when the debugfs interface
is no longer needed. This includes inside of the
regulator_unregister() function as well as in the error return
path of rdev_init_debugfs().
Change-Id: I10563ae1716f31bdc5840d22633fdbfe278330f1
Signed-off-by: David Collins <collinsd@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 72266ea83d82..9cee86d33f86 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -407,6 +407,7 @@ struct regulator_dev { /* time when this regulator was disabled last time */ unsigned long last_off_jiffy; struct proxy_consumer *proxy_consumer; + struct regulator *debug_consumer; }; struct regulator_dev * |
