Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Luis de Bethencourt Newsgroups: linux.kernel Subject: [PATCH 10/12] ASoC: pxa: Fix module autoload for OF platform drivers Date: Thu, 03 Sep 2015 13:10:02 +0200 Message-ID: X-Original-To: linux-kernel@vger.kernel.org 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) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 41 Organization: linux.* mail to news gateway X-Original-Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Javier Martinez Canillas X-Original-Date: Thu, 3 Sep 2015 13:00:03 +0200 X-Original-Message-ID: <20150903110003.GA17009@goodgumbo.baconseed.org> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1218166 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 = { -- 2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/