diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-02-10 17:37:19 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-02-13 14:50:10 -0500 |
commit | 8eb34207c8cf90bc991f0141f7d3fa614429a00b (patch) | |
tree | 38aa7cdd8ce1a7d273a3ad1d43cda0da5c6f8ea5 | |
parent | bf1b1328360d53a41cdf3f8639a5f38cb9537f1c (diff) |
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>
-rw-r--r-- | sound/soc/tegra/harmony.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_das.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_i2s.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_pcm.c | 5 |
4 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/harmony.c index 66512426317d..8585957477eb 100644 --- a/sound/soc/tegra/harmony.c +++ b/sound/soc/tegra/harmony.c | |||
@@ -390,3 +390,4 @@ module_exit(snd_tegra_harmony_exit); | |||
390 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | 390 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); |
391 | MODULE_DESCRIPTION("Harmony machine ASoC driver"); | 391 | MODULE_DESCRIPTION("Harmony machine ASoC driver"); |
392 | MODULE_LICENSE("GPL"); | 392 | MODULE_LICENSE("GPL"); |
393 | MODULE_ALIAS("platform:" DRV_NAME); | ||
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c index 01eb9c9301de..9f24ef73f2cb 100644 --- a/sound/soc/tegra/tegra_das.c +++ b/sound/soc/tegra/tegra_das.c | |||
@@ -262,3 +262,4 @@ module_exit(tegra_das_modexit); | |||
262 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | 262 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); |
263 | MODULE_DESCRIPTION("Tegra DAS driver"); | 263 | MODULE_DESCRIPTION("Tegra DAS driver"); |
264 | MODULE_LICENSE("GPL"); | 264 | MODULE_LICENSE("GPL"); |
265 | MODULE_ALIAS("platform:" DRV_NAME); | ||
diff --git a/sound/soc/tegra/tegra_i2s.c b/sound/soc/tegra/tegra_i2s.c index 870ee361f757..4f5e2c90b020 100644 --- a/sound/soc/tegra/tegra_i2s.c +++ b/sound/soc/tegra/tegra_i2s.c | |||
@@ -500,3 +500,4 @@ module_exit(snd_tegra_i2s_exit); | |||
500 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | 500 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); |
501 | MODULE_DESCRIPTION("Tegra I2S ASoC driver"); | 501 | MODULE_DESCRIPTION("Tegra I2S ASoC driver"); |
502 | MODULE_LICENSE("GPL"); | 502 | MODULE_LICENSE("GPL"); |
503 | MODULE_ALIAS("platform:" DRV_NAME); | ||
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 @@ | |||
39 | 39 | ||
40 | #include "tegra_pcm.h" | 40 | #include "tegra_pcm.h" |
41 | 41 | ||
42 | #define DRV_NAME "tegra-pcm-audio" | ||
43 | |||
42 | static const struct snd_pcm_hardware tegra_pcm_hardware = { | 44 | static const struct snd_pcm_hardware tegra_pcm_hardware = { |
43 | .info = SNDRV_PCM_INFO_MMAP | | 45 | .info = SNDRV_PCM_INFO_MMAP | |
44 | SNDRV_PCM_INFO_MMAP_VALID | | 46 | SNDRV_PCM_INFO_MMAP_VALID | |
@@ -377,7 +379,7 @@ static int __devexit tegra_pcm_platform_remove(struct platform_device *pdev) | |||
377 | 379 | ||
378 | static struct platform_driver tegra_pcm_driver = { | 380 | static struct platform_driver tegra_pcm_driver = { |
379 | .driver = { | 381 | .driver = { |
380 | .name = "tegra-pcm-audio", | 382 | .name = DRV_NAME, |
381 | .owner = THIS_MODULE, | 383 | .owner = THIS_MODULE, |
382 | }, | 384 | }, |
383 | .probe = tegra_pcm_platform_probe, | 385 | .probe = tegra_pcm_platform_probe, |
@@ -399,3 +401,4 @@ module_exit(snd_tegra_pcm_exit); | |||
399 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | 401 | MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); |
400 | MODULE_DESCRIPTION("Tegra PCM ASoC driver"); | 402 | MODULE_DESCRIPTION("Tegra PCM ASoC driver"); |
401 | MODULE_LICENSE("GPL"); | 403 | MODULE_LICENSE("GPL"); |
404 | MODULE_ALIAS("platform:" DRV_NAME); | ||