]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ASoC: Tegra: Add MODULE_ALIAS
authorStephen Warren <swarren@nvidia.com>
Thu, 10 Feb 2011 22:37:19 +0000 (15:37 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 Feb 2011 19:50:10 +0000 (19:50 +0000)
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>
sound/soc/tegra/harmony.c
sound/soc/tegra/tegra_das.c
sound/soc/tegra/tegra_i2s.c
sound/soc/tegra/tegra_pcm.c

index 66512426317dac6a33139dada7d30d87154f4912..8585957477eb4425f26a7d87d2a33ea36e260d85 100644 (file)
@@ -390,3 +390,4 @@ module_exit(snd_tegra_harmony_exit);
 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
 MODULE_DESCRIPTION("Harmony machine ASoC driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRV_NAME);
index 01eb9c9301de39a7a2f227a54f97a77f16d116c2..9f24ef73f2cb3e689e21f0134197e41b8b0e5d7a 100644 (file)
@@ -262,3 +262,4 @@ module_exit(tegra_das_modexit);
 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
 MODULE_DESCRIPTION("Tegra DAS driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRV_NAME);
index 870ee361f75790b29bf03ab2a556d4f044a55e20..4f5e2c90b0207ce0be0b39bf90a946d27b8ece2a 100644 (file)
@@ -500,3 +500,4 @@ module_exit(snd_tegra_i2s_exit);
 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
 MODULE_DESCRIPTION("Tegra I2S ASoC driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRV_NAME);
index 663ea9fa0ca377961f0560d2778ee0bc4ca8843b..40540b175f5ee82d62a0c5721eeefcf33f3b001a 100644 (file)
@@ -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);