lkml.org 
[lkml]   [2012]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] regulator: Add empty devm_regulator_free for !CONFIG_REGULATOR
From
Date
So we don't have to add #ifdef CONFIG_REGULATOR guards for all the callers of
devm_regulator_free.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
include/linux/regulator/consumer.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index cef8f04..ad4eae8 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -216,6 +216,10 @@ static inline void regulator_put(struct regulator *regulator)
{
}

+static inline void devm_regulator_free(struct regulator *regulator)
+{
+}
+
static inline int regulator_enable(struct regulator *regulator)
{
return 0;
--
1.7.5.4




\
 
 \ /
  Last update: 2012-01-29 03:33    [W:0.025 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site