From patchwork Thu Sep 3 11:00:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 7115971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 86483BEEC1 for ; Thu, 3 Sep 2015 11:02:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A4A1F20748 for ; Thu, 3 Sep 2015 11:02:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 971C820504 for ; Thu, 3 Sep 2015 11:02:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXSFs-0000Ec-B2; Thu, 03 Sep 2015 11:00:32 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXSFp-00007u-Qg for linux-arm-kernel@lists.infradead.org; Thu, 03 Sep 2015 11:00:30 +0000 Received: by wicmc4 with SMTP id mc4so15742057wic.0 for ; Thu, 03 Sep 2015 04:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=dHiI24OapbYl9NHUzvWZ6m7pdPOGlSK8beIPbaGtlJc=; b=xOHk+ICH8SZ733bGTnmvklnCSGr+GzUzYI6T3rUkqkVWjjINd24LSnTZLowNEOXpVf IdJxNIgN7e/j/Auk15XaSEM9PiFw+otMG/H7BYZw2NhwGAFY8obyeVA4Es70+6gv6l6M zObnM0myOmSY63XTYkp4bCDFnFmuNxHSMT8BH2usCYhPU2OmFB5uCpOWYAoxPj2znH+z WXUNklwYTE57g1VkBbUgYv+bYb6k9DYXIJhsAvjX01bOI/PWE/VJFC9/TtDlrLgYObOn Hc28ABD5p5zKv1gJpRTAe3468Wa0f8kwgBKrxtXRbm4Q5M8qAg0/cR8xIEgxHsSD4/Qr EB8g== X-Received: by 10.194.121.34 with SMTP id lh2mr49462663wjb.101.1441278004940; Thu, 03 Sep 2015 04:00:04 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id fb3sm8389310wib.21.2015.09.03.04.00.04 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Sep 2015 04:00:04 -0700 (PDT) Date: Thu, 3 Sep 2015 13:00:03 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Subject: [PATCH 10/12] ASoC: pxa: Fix module autoload for OF platform drivers Message-ID: <20150903110003.GA17009@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150903_040030_126441_5B665343 X-CRM114-Status: GOOD ( 13.90 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, Takashi Iwai , Liam Girdwood , Haojian Zhuang , Jaroslav Kysela , Javier Martinez Canillas , Mark Brown , linux-arm-kernel@lists.infradead.org, Robert Jarzmik , Daniel Mack Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These platform drivers have a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt --- sound/soc/pxa/pxa-ssp.c | 1 + sound/soc/pxa/pxa2xx-pcm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index fbe2e93..c254a75 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -809,6 +809,7 @@ static const struct of_device_id pxa_ssp_of_ids[] = { { .compatible = "mrvl,pxa-ssp-dai" }, {} }; +MODULE_DEVICE_TABLE(of, pxa_ssp_of_ids); #endif static int asoc_ssp_probe(struct platform_device *pdev) diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index a51c9da..f1aea95 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c @@ -138,6 +138,7 @@ static const struct of_device_id snd_soc_pxa_audio_match[] = { { .compatible = "mrvl,pxa-pcm-audio" }, { } }; +MODULE_DEVICE_TABLE(of, snd_soc_pxa_audio_match); #endif static struct platform_driver pxa_pcm_driver = {