ASoC: spdif-dit: Add missing MODULE_*
PATCH 1/1 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 <[email protected]>
--- sound/soc/codecs/spdif_transciever.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
sound/soc/codecs/spdif_transciever.c +6 -2
@@ -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 <[email protected]>" ); +MODULE_DESCRIPTION ("SPDIF dummy codec driver" ); +MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:" DRV_NAME );
Signature · 1 line
1.7.0.4
Quoted 7 lines · Stephen Warren
MODULE_ALIASis required so that the module will auto-load based on aplatform_deviceregistration in the board file.While we're at it, add some other MODULE_*.
Signed-off-by Stephen Warren <[email protected]>---
Acked-by Liam Girdwood <[email protected]>
Quoted 6 lines · Stephen Warren
MODULE_ALIASis required so that the module will auto-load based on aplatform_deviceregistration in the board file.While we're at it, add some other MODULE_*.
Signed-off-by Stephen Warren <[email protected]>
Acked-by Mark Brown <[email protected]>