Skip to contentSkip to conversation

ASoC: Export devm_snd_soc_register_platform()

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Apr 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Export devm_snd_soc_register_platform()

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()")
---
 sound/soc/soc-devres.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/soc-devres.c +1 -0
index e94aa02..057e5ef 100644
@@ -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)
 {
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

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.