ASoC: Export devm_snd_soc_register_platform()
diff mbox

Message ID 1398200321-4299-1-git-send-email-lars@metafoo.de
State Accepted
Commit 1f23380b803a670a9eb53f63fd0c662d20ab1b66
Headers show

Commit Message

Lars-Peter Clausen April 22, 2014, 8:58 p.m. UTC
devm_snd_soc_register_platform() is used in drivers which can be build as
modules, so it needs to be exported to avoid linkers errors like:

	ERROR: "devm_snd_soc_register_platform" [sound/soc/omap/snd-soc-omap.ko] undefined!
	ERROR: "devm_snd_soc_register_platform" [sound/soc/davinci/snd-soc-davinci.ko] undefined!

Fixes: 8931bf620 ("ASoC: Add resource managed snd_soc_register_platform()")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/soc-devres.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown April 22, 2014, 9 p.m. UTC | #1
On Tue, Apr 22, 2014 at 10:58:41PM +0200, Lars-Peter Clausen wrote:
> devm_snd_soc_register_platform() is used in drivers which can be build as
> modules, so it needs to be exported to avoid linkers errors like:

Applied, thanks.

Patch
diff mbox

diff --git a/sound/soc/soc-devres.c b/sound/soc/soc-devres.c
index e94aa02..057e5ef 100644
--- a/sound/soc/soc-devres.c
+++ b/sound/soc/soc-devres.c
@@ -85,6 +85,7 @@  int devm_snd_soc_register_platform(struct device *dev,
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(devm_snd_soc_register_platform);
 
 static void devm_card_release(struct device *dev, void *res)
 {