summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/spdif_transciever.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-05-20 01:44:46 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-05-20 12:19:29 +0200
commit6ae759e889d9fd1733f4392f5083ac8c899253c5 (patch)
treee9c4ae149d6c1f01d1427ebc3a7ba9097c5ff4ee /sound/soc/codecs/spdif_transciever.c
parentASoC: davinci-mcasp: enable ping-pong SRAM buffers (diff)
downloadlinux-6ae759e889d9fd1733f4392f5083ac8c899253c5.tar.xz
linux-6ae759e889d9fd1733f4392f5083ac8c899253c5.zip
ASoC: spdif-dit: Add missing MODULE_*
MODULE_ALIAS is required so that the module will auto-load based on a platform_device registration in the board file. While we're at it, add some other MODULE_*. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/spdif_transciever.c')
-rw-r--r--sound/soc/codecs/spdif_transciever.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c
index 4c32b54913ad..6a1a7e705cd7 100644
--- a/sound/soc/codecs/spdif_transciever.c
+++ b/sound/soc/codecs/spdif_transciever.c
@@ -21,7 +21,7 @@
#include <sound/pcm.h>
#include <sound/initval.h>
-MODULE_LICENSE("GPL");
+#define DRV_NAME "spdif-dit"
#define STUB_RATES SNDRV_PCM_RATE_8000_96000
#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE
@@ -56,7 +56,7 @@ static struct platform_driver spdif_dit_driver = {
.probe = spdif_dit_probe,
.remove = spdif_dit_remove,
.driver = {
- .name = "spdif-dit",
+ .name = DRV_NAME,
.owner = THIS_MODULE,
},
};
@@ -74,3 +74,7 @@ static void __exit dit_exit(void)
module_init(dit_modinit);
module_exit(dit_exit);
+MODULE_AUTHOR("Steve Chen <schen@mvista.com>");
+MODULE_DESCRIPTION("SPDIF dummy codec driver");
+MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRV_NAME);