diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-05-19 19:44:46 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-20 06:19:29 -0400 |
commit | 6ae759e889d9fd1733f4392f5083ac8c899253c5 (patch) | |
tree | e9c4ae149d6c1f01d1427ebc3a7ba9097c5ff4ee | |
parent | a0c8326397262f1817ee6c5212ad6adf43e3df36 (diff) |
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>
-rw-r--r-- | sound/soc/codecs/spdif_transciever.c | 8 |
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 @@ | |||
21 | #include <sound/pcm.h> | 21 | #include <sound/pcm.h> |
22 | #include <sound/initval.h> | 22 | #include <sound/initval.h> |
23 | 23 | ||
24 | MODULE_LICENSE("GPL"); | 24 | #define DRV_NAME "spdif-dit" |
25 | 25 | ||
26 | #define STUB_RATES SNDRV_PCM_RATE_8000_96000 | 26 | #define STUB_RATES SNDRV_PCM_RATE_8000_96000 |
27 | #define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE | 27 | #define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE |
@@ -56,7 +56,7 @@ static struct platform_driver spdif_dit_driver = { | |||
56 | .probe = spdif_dit_probe, | 56 | .probe = spdif_dit_probe, |
57 | .remove = spdif_dit_remove, | 57 | .remove = spdif_dit_remove, |
58 | .driver = { | 58 | .driver = { |
59 | .name = "spdif-dit", | 59 | .name = DRV_NAME, |
60 | .owner = THIS_MODULE, | 60 | .owner = THIS_MODULE, |
61 | }, | 61 | }, |
62 | }; | 62 | }; |
@@ -74,3 +74,7 @@ static void __exit dit_exit(void) | |||
74 | module_init(dit_modinit); | 74 | module_init(dit_modinit); |
75 | module_exit(dit_exit); | 75 | module_exit(dit_exit); |
76 | 76 | ||
77 | MODULE_AUTHOR("Steve Chen <schen@mvista.com>"); | ||
78 | MODULE_DESCRIPTION("SPDIF dummy codec driver"); | ||
79 | MODULE_LICENSE("GPL"); | ||
80 | MODULE_ALIAS("platform:" DRV_NAME); | ||