From patchwork Tue Jun 26 09:20:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10488401 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 632AD604D3 for ; Tue, 26 Jun 2018 09:24:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DD842884E for ; Tue, 26 Jun 2018 09:24:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5283B28868; Tue, 26 Jun 2018 09:24:15 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 049522884E for ; Tue, 26 Jun 2018 09:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933796AbeFZJX7 (ORCPT ); Tue, 26 Jun 2018 05:23:59 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53480 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933795AbeFZJWd (ORCPT ); Tue, 26 Jun 2018 05:22:33 -0400 Received: by mail-wm0-f68.google.com with SMTP id x6-v6so1024472wmc.3 for ; Tue, 26 Jun 2018 02:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dDHlQQyDgNgCnbd9tlc16D/4bHw7LUCY4jFdFkZ6Znk=; b=F+cyKahCRSnwMLc7HfBOO2kByLZWw6cGsDsVvXJ/5IKhTl99gon0VxdjX+sggnQZbB J7vAj/hERlj2l2iB0HYph5BmrMLwJsy6ssMZFJH9vZBhYkuLDYgvrd5EaP2AWeiR9jEE F6UAS/IpTtzcv2Uso5hktnirhbllP7emVTXow= 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; bh=dDHlQQyDgNgCnbd9tlc16D/4bHw7LUCY4jFdFkZ6Znk=; b=MnqGujOpp1BJp3IxjFPSa+2y+NTkDr05H9hVnpf+gMdzS4qmzCgTRfBwf4MIPlDcbU HAWOEud9GsaEPtzOLP3pcrQHGPIXPprfrx8sCKgRgUiy4uT01nzaPQGGl27GLPpru/eM Jr4RN/AtmMBJarR080HppbQ91Efx2AyLh914aizgTQn44YTP9rwJ4SPuWaKGnfKZpd4c Vh4Nbjl+8L7i5ojrHLruvcLPNTykAqqZa6BMuRwcIX0B5IyEFnvTT8VI9b6LbAKr7V9z euNiGT/5O/9YE6ZE4vQvLpcyTMloN9X8JydlJ1eP3qGtjIHIWDLBThkdFO2sULTMHBiH 5rdA== X-Gm-Message-State: APt69E1AMASdy30SG2nyRjgLYx4Okb06uixj0I+sVoGz9W09/KIFcpsj n9Pz/4Ij9O6cYOl9zEx9Gymotg== X-Google-Smtp-Source: AAOMgperth8EHM+m2QNNn3h9PzFVmHeUyUbIw0GCW22N+ieWLZdjh+mx6c8dF8WgR9yiopRatfHIDg== X-Received: by 2002:a1c:9e95:: with SMTP id h143-v6mr952105wme.68.1530004952197; Tue, 26 Jun 2018 02:22:32 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id x5-v6sm1438456wrr.3.2018.06.26.02.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jun 2018 02:22:31 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, tiwai@suse.com, perex@perex.cz, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, niklas.cassel@linaro.org, Srinivas Kandagatla Subject: [PATCH v2 08/12] ASoC: qdsp6: q6asm-dai: support dt based module loading Date: Tue, 26 Jun 2018 10:20:12 +0100 Message-Id: <20180626092016.9296-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180626092016.9296-1-srinivas.kandagatla@linaro.org> References: <20180626092016.9296-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla Acked-by: Niklas Cassel --- sound/soc/qcom/qdsp6/q6asm-dai.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 349c6a883c63..1196dc7483d2 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -611,9 +611,16 @@ static int q6asm_dai_dev_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6asm_dai_device_id[] = { + { .compatible = "qcom,q6asm-dais" }, + {}, +}; +MODULE_DEVICE_TABLE(of, q6asm_dai_device_id); + static struct platform_driver q6asm_dai_platform_driver = { .driver = { .name = "q6asm-dai", + .of_match_table = of_match_ptr(q6asm_dai_device_id), }, .probe = q6asm_dai_probe, .remove = q6asm_dai_dev_remove,