* [PATCH] ASoC: spdif-dit: Add missing MODULE_*
@ 2011-05-19 23:44 Stephen Warren
2011-05-20 8:47 ` Liam Girdwood
2011-05-21 11:11 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Warren @ 2011-05-19 23:44 UTC (permalink / raw)
To: broonie, lrg; +Cc: alsa-devel, Stephen Warren
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>
---
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 4c32b54..6a1a7e7 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);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: spdif-dit: Add missing MODULE_*
2011-05-19 23:44 [PATCH] ASoC: spdif-dit: Add missing MODULE_* Stephen Warren
@ 2011-05-20 8:47 ` Liam Girdwood
2011-05-21 11:11 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2011-05-20 8:47 UTC (permalink / raw)
To: Stephen Warren; +Cc: alsa-devel, broonie
On 20/05/11 00:44, Stephen Warren wrote:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: spdif-dit: Add missing MODULE_*
2011-05-19 23:44 [PATCH] ASoC: spdif-dit: Add missing MODULE_* Stephen Warren
2011-05-20 8:47 ` Liam Girdwood
@ 2011-05-21 11:11 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-05-21 11:11 UTC (permalink / raw)
To: Stephen Warren; +Cc: alsa-devel, lrg
On Thu, May 19, 2011 at 05:44:46PM -0600, Stephen Warren wrote:
> 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: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-21 11:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 23:44 [PATCH] ASoC: spdif-dit: Add missing MODULE_* Stephen Warren
2011-05-20 8:47 ` Liam Girdwood
2011-05-21 11:11 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.