diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-23 08:47:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-26 12:40:22 -0400 |
commit | 5258beedc30a72b0c21521aa531ed26ad45cb3f7 (patch) | |
tree | 6d4564fd94cffb71d15dd01b3043ef7f023270b2 /drivers/regulator | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
regulator: dbx500: remove unused functions in dbx500-prcmu.c
We get 2 warnings when building kernel with W=1:
drivers/regulator/dbx500-prcmu.c:78:6: warning: no previous prototype for 'ux500_regulator_suspend_debug' [-Wmissing-prototypes]
drivers/regulator/dbx500-prcmu.c:87:6: warning: no previous prototype for 'ux500_regulator_resume_debug' [-Wmissing-prototypes]
In fact, these functions are unused in
dbx500-prcmu.c, but should be removed.
So this patch removes the unused functions.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/dbx500-prcmu.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index 3963dfad766c..8976141c1438 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c | |||
@@ -75,24 +75,6 @@ static struct ux500_regulator_debug { | |||
75 | u8 *state_after_suspend; | 75 | u8 *state_after_suspend; |
76 | } rdebug; | 76 | } rdebug; |
77 | 77 | ||
78 | void ux500_regulator_suspend_debug(void) | ||
79 | { | ||
80 | int i; | ||
81 | |||
82 | for (i = 0; i < rdebug.num_regulators; i++) | ||
83 | rdebug.state_before_suspend[i] = | ||
84 | rdebug.regulator_array[i].is_enabled; | ||
85 | } | ||
86 | |||
87 | void ux500_regulator_resume_debug(void) | ||
88 | { | ||
89 | int i; | ||
90 | |||
91 | for (i = 0; i < rdebug.num_regulators; i++) | ||
92 | rdebug.state_after_suspend[i] = | ||
93 | rdebug.regulator_array[i].is_enabled; | ||
94 | } | ||
95 | |||
96 | static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p) | 78 | static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p) |
97 | { | 79 | { |
98 | /* print power state count */ | 80 | /* print power state count */ |