All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Export devm_snd_soc_register_platform()
@ 2014-04-22 20:58 Lars-Peter Clausen
  2014-04-22 21:00 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2014-04-22 20:58 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: Peter Ujfalusi, alsa-devel, 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:

	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(+)

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)
 {
-- 
1.8.0

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

* Re: [PATCH] ASoC: Export devm_snd_soc_register_platform()
  2014-04-22 20:58 [PATCH] ASoC: Export devm_snd_soc_register_platform() Lars-Peter Clausen
@ 2014-04-22 21:00 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-04-22 21:00 UTC (permalink / raw)
  To: Lars-Peter Clausen; +Cc: Peter Ujfalusi, alsa-devel, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 230 bytes --]

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.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2014-04-22 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 20:58 [PATCH] ASoC: Export devm_snd_soc_register_platform() Lars-Peter Clausen
2014-04-22 21:00 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.