summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_pcm.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-02-10 23:37:19 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-13 20:50:10 +0100
commit8eb34207c8cf90bc991f0141f7d3fa614429a00b (patch)
tree38aa7cdd8ce1a7d273a3ad1d43cda0da5c6f8ea5 /sound/soc/tegra/tegra_pcm.c
parentASoC: Tegra: Harmony: Explicitly set mic enables (diff)
downloadlinux-8eb34207c8cf90bc991f0141f7d3fa614429a00b.tar.xz
linux-8eb34207c8cf90bc991f0141f7d3fa614429a00b.zip
ASoC: Tegra: Add MODULE_ALIAS
With the appropriate MODULE_ALIAS in place, the audio modules will be automatically loaded; there is no longer a need for manual modprobes. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra/tegra_pcm.c')
-rw-r--r--sound/soc/tegra/tegra_pcm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
index 663ea9fa0ca3..40540b175f5e 100644
--- a/sound/soc/tegra/tegra_pcm.c
+++ b/sound/soc/tegra/tegra_pcm.c
@@ -39,6 +39,8 @@
#include "tegra_pcm.h"
+#define DRV_NAME "tegra-pcm-audio"
+
static const struct snd_pcm_hardware tegra_pcm_hardware = {
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
@@ -377,7 +379,7 @@ static int __devexit tegra_pcm_platform_remove(struct platform_device *pdev)
static struct platform_driver tegra_pcm_driver = {
.driver = {
- .name = "tegra-pcm-audio",
+ .name = DRV_NAME,
.owner = THIS_MODULE,
},
.probe = tegra_pcm_platform_probe,
@@ -399,3 +401,4 @@ module_exit(snd_tegra_pcm_exit);
MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
MODULE_DESCRIPTION("Tegra PCM ASoC driver");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRV_NAME);