Skip to content

Commit

Permalink
ASoC: spdif-dit: Add missing MODULE_*
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren authored and Mark Brown committed May 20, 2011
1 parent a0c8326 commit 6ae759e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sound/soc/codecs/spdif_transciever.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
},
};
Expand All @@ -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);

0 comments on commit 6ae759e

Please sign in to comment.