Skip to content

Commit

Permalink
ASoC: Export devm_snd_soc_register_platform()
Browse files Browse the repository at this point in the history
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: 8931bf6 ("ASoC: Add resource managed snd_soc_register_platform()")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Apr 22, 2014
1 parent 8931bf6 commit 1f23380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/soc-devres.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1f23380

Please sign in to comment.