From patchwork Tue Sep 6 20:14:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mans Rullgard X-Patchwork-Id: 1126962 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p86KRFKQ030005 for ; Tue, 6 Sep 2011 20:27:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755126Ab1IFU1O (ORCPT ); Tue, 6 Sep 2011 16:27:14 -0400 Received: from unicorn.mansr.com ([78.86.181.103]:39874 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755114Ab1IFU1O (ORCPT ); Tue, 6 Sep 2011 16:27:14 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 06 Sep 2011 20:27:17 +0000 (UTC) X-Greylist: delayed 683 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Sep 2011 16:27:14 EDT Received: by unicorn.mansr.com (Postfix, from userid 51770) id A52B613260; Tue, 6 Sep 2011 21:15:48 +0100 (BST) From: Mans Rullgard To: linux-omap@vger.kernel.org Cc: linaro-dev@lists.linaro.org Subject: [PATCH] ASoC: omap: add MODULE_ALIAS to mcbsp and pcm drivers Date: Tue, 6 Sep 2011 21:14:16 +0100 Message-Id: <1315340056-32148-1-git-send-email-mans.rullgard@linaro.org> X-Mailer: git-send-email 1.7.6.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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 --- 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",