public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regmap: provide dummy regmap_exit()
@ 2014-11-25 20:21 Olof Johansson
  2014-11-25 20:39 ` Lars-Peter Clausen
  0 siblings, 1 reply; 6+ messages in thread
From: Olof Johansson @ 2014-11-25 20:21 UTC (permalink / raw)
  To: broonie; +Cc: linux-kernel, Lars-Peter Clausen, Olof Johansson

Fixes build error:

sound/soc/soc-core.c: In function 'snd_soc_component_exit_regmap':
sound/soc/soc-core.c:2644:2: error: implicit declaration of function 'regmap_exit' [-Werror=implicit-function-declaration]
  regmap_exit(component->regmap);

Due to the other regmap functions providing appropriate stubs when
!CONFIG_REGMAP, but this one is missing. Add it.

Signed-off-by: Olof Johansson <olof@lixom.net>
---
 include/linux/regmap.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 4419b99..efb58a0 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -737,6 +737,11 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
 	return NULL;
 }
 
+static inline void regmap_exit(struct regmap *map)
+{
+	return;
+}
+
 static inline struct device *regmap_get_device(struct regmap *map)
 {
 	WARN_ONCE(1, "regmap API is disabled");
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-25 21:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-25 20:21 [PATCH] regmap: provide dummy regmap_exit() Olof Johansson
2014-11-25 20:39 ` Lars-Peter Clausen
2014-11-25 21:03   ` [PATCH v2] " Olof Johansson
2014-11-25 21:14     ` Mark Brown
2014-11-25 21:18       ` Mark Brown
2014-11-25 21:27       ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox