From 40456168dbe8bf88d0ac19ed7ae1a1cbead74347 Mon Sep 17 00:00:00 2001 From: David Collins Date: Tue, 25 Aug 2015 10:52:38 -0700 Subject: 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 --- include/linux/regulator/driver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') 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 * -- cgit v1.2.3