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: 10488493 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 DCA3D602B3 for ; Tue, 26 Jun 2018 09:29:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D92DC2884E for ; Tue, 26 Jun 2018 09:29:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDC1D28857; Tue, 26 Jun 2018 09:29:50 +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 autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7CF352884E for ; Tue, 26 Jun 2018 09:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xhK+YV5LyPpvKPuyK3gfBVu94SHCL1x4dpre76yDJzM=; b=ZuQGpI/Gkd7+brLjrHKiMpRMxw KQAYdqLhs7IIcWf3ioiSvmyVPb54ehwyVdJkdUrJtRxoJhNiQXIzaPUBCjQosT3GgAeUuk2Go9M6s Tq1q28YTLeW3L90cBKEgMNBiSEKeN4KqRaxjfUk6Ib9AILMfkgvPzTKdAh1zf+scEiK21IrEHCzfL JzSLIlJmfKggf6BeKaqT1hsOFfoIaiXICwX5tinBf+BeQmI/qi3MLjaWE0nIAmYjT/9FABKUJ7AKo SYWxWWhqPjPaO5w/Kn11x59FBxtjsi/LQccqFyJtFEpXfj3QLM9f5Vc257YDqPfvqNRWfZ/rK6Z4e umtl/Vdg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXkIA-0005IN-ND; Tue, 26 Jun 2018 09:29:42 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXkBG-0000Vj-CC for linux-arm-kernel@lists.infradead.org; Tue, 26 Jun 2018 09:22:38 +0000 Received: by mail-wm0-x241.google.com with SMTP id z137-v6so1015871wmc.0 for ; Tue, 26 Jun 2018 02:22:33 -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=NEG93HInN41eZH9nWod9CmsVyJfepsxN2xQn6myqVVYSjRQ4qBKQASRQz/h/SsMr9Z 4ENnTuuJBizG0ziBSxP5702bhZOISAMXjRlixhzVx/H7dQH05rD1zTdCdgIPSmHOhUv+ fG9N1U+fQAHXO+cVpp8cCp7eNOF0Hx/F+49usl+XTVbWsaZfrPN/ILSMnMU1T8/Wzb80 +CeMiQBDH7QGlsocIpEd5gy/mMMVbeD/XfbdI1uo+XsLRCwfA2m13xqZm7Z7Ir6ygpko UMSuvoK4NOqQt62MUvDIub2z6ZQowGnsBKEu7HW+tnvPHvpCy6B3zSCZARzYkky09TH5 nXwA== X-Gm-Message-State: APt69E0oNyzXp1LA//rTfCW0CoN2qdLfJ0ucFwrmLKHmQ9eYB6y3oYd0 zsSXPhmNZNNelqd+duxas5mBCQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180626_022234_455165_579254E2 X-CRM114-Status: GOOD ( 12.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, tiwai@suse.com, perex@perex.cz, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, niklas.cassel@linaro.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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,