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"); + 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",