diff mbox

ASoC: omap: add MODULE_ALIAS to mcbsp and pcm drivers

Message ID 1315340056-32148-1-git-send-email-mans.rullgard@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Mans Rullgard Sept. 6, 2011, 8:14 p.m. UTC
This adds MODULE_ALIAS directives to the omap-mcbsp-dai and
omap-pcm-audio drivers so they can be auto-loaded when platform
devices are scanned.

Signed-off-by: Mans Rullgard <mans.rullgard@linaro.org>
---
 sound/soc/omap/omap-mcbsp.c |    2 ++
 sound/soc/omap/omap-pcm.c   |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

Comments

Jarkko Nikula Sept. 7, 2011, 9:29 a.m. UTC | #1
Hi

On 09/06/2011 11:14 PM, Mans Rullgard wrote:
> This adds MODULE_ALIAS directives to the omap-mcbsp-dai and
> omap-pcm-audio drivers so they can be auto-loaded when platform
> devices are scanned.
>
> Signed-off-by: Mans Rullgard<mans.rullgard@linaro.org>
> ---
>   sound/soc/omap/omap-mcbsp.c |    2 ++
>   sound/soc/omap/omap-pcm.c   |    2 ++
>   2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
> index 07b7723..56b7504 100644
> --- a/sound/soc/omap/omap-mcbsp.c
> +++ b/sound/soc/omap/omap-mcbsp.c
> @@ -758,6 +758,8 @@ static int __devexit asoc_mcbsp_remove(struct platform_device *pdev)
>   	return 0;
>   }
>
> +MODULE_ALIAS("platform:omap-mcbsp-dai");
> +
Put these at the end of file where the other MODULE_ macros are.

Send updated patch to alsa-devel@alsa-project.org with Liam Girdwood and 
Mark Brown cc'ed (see SOUND - SOC LAYER in ./MAINTAINERS).
diff mbox

Patch

diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 07b7723..56b7504 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -758,6 +758,8 @@  static int __devexit asoc_mcbsp_remove(struct platform_device *pdev)
 	return 0;
 }
 
+MODULE_ALIAS("platform:omap-mcbsp-dai");
+
 static struct platform_driver asoc_mcbsp_driver = {
 	.driver = {
 			.name = "omap-mcbsp-dai",
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index e6a6b99..6c85b69 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -412,6 +412,8 @@  static int __devexit omap_pcm_remove(struct platform_device *pdev)
 	return 0;
 }
 
+MODULE_ALIAS("platform:omap-pcm-audio");
+
 static struct platform_driver omap_pcm_driver = {
 	.driver = {
 			.name = "omap-pcm-audio",