All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap: add MODULE_ALIAS to mcbsp and pcm drivers
@ 2011-09-06 20:14 Mans Rullgard
       [not found] ` <1315340056-32148-1-git-send-email-mans.rullgard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mans Rullgard @ 2011-09-06 20:14 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA; +Cc: linaro-dev-cunTk1MwBs8s++Sfvej+rw

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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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");
+
 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",
-- 
1.7.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: omap: add MODULE_ALIAS to mcbsp and pcm drivers
       [not found] ` <1315340056-32148-1-git-send-email-mans.rullgard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2011-09-07  9:29   ` Jarkko Nikula
  0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Nikula @ 2011-09-07  9:29 UTC (permalink / raw)
  To: Mans Rullgard
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linaro-dev-cunTk1MwBs8s++Sfvej+rw

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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org with Liam Girdwood and 
Mark Brown cc'ed (see SOUND - SOC LAYER in ./MAINTAINERS).

-- 
Jarkko

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-07  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 20:14 [PATCH] ASoC: omap: add MODULE_ALIAS to mcbsp and pcm drivers Mans Rullgard
     [not found] ` <1315340056-32148-1-git-send-email-mans.rullgard-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-09-07  9:29   ` Jarkko Nikula

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.