[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1327804218.16295.1.camel@phoenix>
Date: Sun, 29 Jan 2012 10:30:18 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Liam Girdwood <lrg@...com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>
Subject: [PATCH] regulator: Add empty devm_regulator_free for
!CONFIG_REGULATOR
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists