From patchwork Fri Sep 18 20:11:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Cormier X-Patchwork-Id: 7220621 Return-Path: X-Original-To: patchwork-alsa-devel@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 935EFBF036 for ; Fri, 18 Sep 2015 20:14:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBA7C2093F for ; Fri, 18 Sep 2015 20:14:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 579D320939 for ; Fri, 18 Sep 2015 20:14:00 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 24396266199; Fri, 18 Sep 2015 22:13:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 2F466265DFD; Fri, 18 Sep 2015 22:12:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 36159265FAE; Fri, 18 Sep 2015 22:12:47 +0200 (CEST) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by alsa0.perex.cz (Postfix) with ESMTP id DF4F1265DFD for ; Fri, 18 Sep 2015 22:12:32 +0200 (CEST) Received: by qkap81 with SMTP id p81so24175017qka.2 for ; Fri, 18 Sep 2015 13:12:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=X1/IDBZ31ml7/vcL+1Yape58zeAsIRnnuanvaftz9hc=; b=S83JQsy3u7BgkztVaN31fZAA0F4zHjuMlBXoV3Bji78Kv7Kl3fuG/rRFonWMEyPEUV bRELu4lxigzlReW+r5dCH5anzZSxlsLzbZdJ6ECO2I+3WpPvyObNx5edNq4gMLqFQuY7 zgUhwWpAFeLrzFEgJBdSyTc4GhMPhYCOP7xNWgKamFqKfwfbn/eKRwK19piBu/MyGQZD MLHK0uR+Ft05Xk0bDmHI/XTYdILpE6Is/qqHMKIEF4QlKp8RwMIhJWR+0hxsSDj1rln2 fQfe8SHgmeWlALKDoLFPJheX6Nycoci7ffkIGDyh3gZ65lPfUpeshobSisVWuxJurQyd slaQ== X-Gm-Message-State: ALoCoQnADqmgAf7gPrkdfj6ftt3l7htGlnYmAxBndiNJgUNf3B5p2skCa7QTLbHzRtFoToufi6t0 X-Received: by 10.55.43.34 with SMTP id r34mr8610834qkh.77.1442607152270; Fri, 18 Sep 2015 13:12:32 -0700 (PDT) Received: from jcormier-desktop.syr.criticallink.com (static-72-90-70-106.syrcny.fios.verizon.net. [72.90.70.106]) by smtp.gmail.com with ESMTPSA id b16sm4328443qkj.1.2015.09.18.13.12.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Sep 2015 13:12:31 -0700 (PDT) From: "Cormier, Jonathan" To: Liam Girdwood Date: Fri, 18 Sep 2015 16:11:11 -0400 Message-Id: <1442607076-26681-3-git-send-email-jcormier@criticallink.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442607076-26681-1-git-send-email-jcormier@criticallink.com> References: <1442607076-26681-1-git-send-email-jcormier@criticallink.com> Cc: "Cormier, Jonathan" , alsa-devel@alsa-project.org, Bob Duke , Mark Brown , linux-kernel@vger.kernel.org, Takashi Iwai , Jyri Sarha , Peter Ujfalusi , Mike Williamson , Greg Gluszek , Misael Lopez Cruz Subject: [alsa-devel] [PATCH RFC 2/7] ASoC: tlv320aic26: Fix module autoload X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add the missing MODULE_DEVICE_TABLE() for OF and SPI to export the information so modules have the correct aliases built-in and autoloading works correctly. A longer explanation by Javier Canillas can be found here: https://lkml.org/lkml/2015/7/30/519 https://lkml.org/lkml/2014/9/11/458 Signed-off-by: Cormier, Jonathan --- sound/soc/codecs/tlv320aic26.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 91fdd96648bd..91347727cfae 100644 --- a/sound/soc/codecs/tlv320aic26.c +++ b/sound/soc/codecs/tlv320aic26.c @@ -370,11 +370,18 @@ static int aic26_spi_remove(struct spi_device *spi) return 0; } +static const struct spi_device_id tlv320aic26_id_table[] = { + { "tlv320aic26" }, + {}, +}; +MODULE_DEVICE_TABLE(spi, tlv320aic26_id_table); + #if defined(CONFIG_OF) static const struct of_device_id tlv320aic26_of_match[] = { { .compatible = "ti,tlv320aic26", }, {}, }; +MODULE_DEVICE_TABLE(of, tlv320aic26_of_match); #endif static struct spi_driver aic26_spi = { @@ -387,6 +394,7 @@ static struct spi_driver aic26_spi = { }, .probe = aic26_spi_probe, .remove = aic26_spi_remove, + .id_table = tlv320aic26_id_table, }; module_spi_driver(aic26_spi);