From patchwork Thu Mar 21 22:15:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cormier X-Patchwork-Id: 10864435 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D24117E0 for ; Thu, 21 Mar 2019 22:20:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F10502A4E4 for ; Thu, 21 Mar 2019 22:20:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E54552A52B; Thu, 21 Mar 2019 22:20:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F5382A4E8 for ; Thu, 21 Mar 2019 22:20:14 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7AB88883; Thu, 21 Mar 2019 23:19:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7AB88883 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1553206812; bh=/Z8NYNXAILFhyloG2xlvyY4+Sx/v6WaH/GniB1tXdMk=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=acgTe+VIP6s4aXcY+BtOYJx62M75yMoJxT9kpYLrpIyNOA1gaTuLZFhg7p/g5fcqY pPh+Bl/NFIUlfD+Ky/rqFqB97KualVLcYer2vkQojnllzmRLxphEq/rjR6M8F+tRzL GXF7W+JtGCqlKUT+tG8vGVwvb1C+4q8hYzdpaf9w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A5F59F89729; Thu, 21 Mar 2019 23:16:13 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7B109F89724; Thu, 21 Mar 2019 23:16:09 +0100 (CET) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BAE33F89718 for ; Thu, 21 Mar 2019 23:16:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BAE33F89718 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=criticallink.com header.i=@criticallink.com header.b="p6YLh11W" Received: by mail-qt1-x842.google.com with SMTP id s1so442985qte.5 for ; Thu, 21 Mar 2019 15:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=if1sNoy1mfi3YtgVv5HkU4CwZTmtdZQjl4UklTZ2rEU=; b=p6YLh11WSgnnDd4ZAr7VdS8XJiY7RLPj1Sm1VREGS4INfI8cJyqzuX+UKMRUKFyR4g Yda6v1GXizL5yF+oLDo6ybsevnVXp0d5k7z/Jieav0pDBhGRbOA9fDuQPVevNSrxVHPV NC1eMgJij3YFlsWLvqTpO0W+Ks9u5q/yS1wefY9tQfbcMK1Zyc3Uzc3xHwXiEvY8S9pz ZQr0ttFZZLwJVndWTjzaz7yJtDOKYtewik2wU1aUmK13wD43PDCpVE0NfE3QhV3Oh9LI Grrx3kB/DSHq2v53d9SAQq1N8n/hkZd95ONzADUHqXqGTPIDuUhDRBjWBHX1/sFLC4K/ 4aQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=if1sNoy1mfi3YtgVv5HkU4CwZTmtdZQjl4UklTZ2rEU=; b=m9N9Tz+P3wBspbkRW6r/zsy/flNS+07JVLmfhUqbMMNZ3SEBcMuGQjmIM2j61eOiyO +9MY68RsQRMUCvP61RicQ+1UYZUPU8rsiQHi0A3EorBfvLpJympkRVYvNuucd5IyISoJ Ies1DzHwnyClKJ228g7de/bYdBv9Os+psNMgD5ljQfXTiOCQnO5sI+TMUOAjUbP8mJfA sXvxxZ4rk8cbeqaAQgdetAK2HxzWIzwbGVc+qK5pJQI3wsudiKezNOVUANwvZRsKvu6x 5wKmuYoLZAcQjybpT1/9gDpcfRkyYLB9cpWUDb4CvH/n3ZgvAMUXXD08yxtNCArLotph gVdw== X-Gm-Message-State: APjAAAUCcuTM9Y+mPOhwefcR+6KL5GKLfXBEqTgMOtkWUdgemaXRJMro MHmC01wD/n6z/1wPwPt4eI5KAA== X-Google-Smtp-Source: APXvYqx3exho2Mefhgr+2F7yBgcEOmqHXx0WKmrrDrMiNge8oUsnTjSVKnm4bO3njHK08Pt58jRipw== X-Received: by 2002:a0c:8b63:: with SMTP id d35mr5155881qvc.148.1553206561958; Thu, 21 Mar 2019 15:16:01 -0700 (PDT) Received: from jcormier-MS-7A93.syr.criticallink.com (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id w37sm3895968qtw.27.2019.03.21.15.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 15:16:01 -0700 (PDT) From: "Cormier, Jonathan" To: Liam Girdwood , devicetree@vger.kernel.org Date: Thu, 21 Mar 2019 18:15:46 -0400 Message-Id: <20190321221549.13765-5-jcormier@criticallink.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190321221549.13765-1-jcormier@criticallink.com> References: <20190321221549.13765-1-jcormier@criticallink.com> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Bob Duke , Mark Brown , linux-kernel@vger.kernel.org, Takashi Iwai , Rob Herring , Peter Ujfalusi , Mike Williamson , Jyri Sarha , Greg Gluszek , Misael Lopez Cruz Subject: [alsa-devel] [PATCH v2 4/7] ASoC: tlv320aic26: Fix module autoload X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 5c9b320b918c..db1d1704ae5c 100644 --- a/sound/soc/codecs/tlv320aic26.c +++ b/sound/soc/codecs/tlv320aic26.c @@ -368,6 +368,12 @@ static int aic26_spi_probe(struct spi_device *spi) return ret; } +static const struct spi_device_id tlv320aic26_id_table[] = { + { "tlv320aic26" }, + {}, +}; +MODULE_DEVICE_TABLE(spi, tlv320aic26_id_table); + static const struct of_device_id tlv320aic26_of_match[] = { { .compatible = "ti,tlv320aic26", }, {}, @@ -380,6 +386,7 @@ static struct spi_driver aic26_spi = { .of_match_table = of_match_ptr(tlv320aic26_of_match), }, .probe = aic26_spi_probe, + .id_table = tlv320aic26_id_table, }; module_spi_driver(aic26_spi);