From patchwork Mon Jun 25 14:31:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10486455 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 35E1D6023A for ; Mon, 25 Jun 2018 14:38:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E95F27816 for ; Mon, 25 Jun 2018 14:38:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 124562787C; Mon, 25 Jun 2018 14:38:27 +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 3494627816 for ; Mon, 25 Jun 2018 14:38:26 +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=20ISNUaMvFleGxNeoWtEYMqROtwKMaStDh513jRYrdc=; b=JFIp8QG8oo59mChyodgycTesnG ygobgVlNfail96lOfgcMGakqNSsKExd3OAEvQ223pphurwHP4o7UPqpRxHX72rLM+aqj4sNf5sVbm txAQTECA+w8KhW20Acztt58v9yj8gKU0m/ZGgTl/2nLrknJ5EMMyakBuUy7EG7JLdBsB7yhScJ5Fp MXs/vChlKXsA2jX4//5s8r8kmj8XDrHwjIYwFFc30bLUSG/MlifVUtNfhh09wR1LiAF70jJjMk/3M WJI1B4VC4nuD2FnvtgOlOmJ5/csb1XsIl6PhIV+X/F8N0/rrtXn3xTcpzxUOhpE4gd7wp3DhaHsxS pGEPoAMQ==; 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 1fXSdC-0007o0-1R; Mon, 25 Jun 2018 14:38:14 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXSZ5-0003RH-7s for linux-arm-kernel@lists.infradead.org; Mon, 25 Jun 2018 14:34:02 +0000 Received: by mail-wr0-x242.google.com with SMTP id a12-v6so13951191wro.1 for ; Mon, 25 Jun 2018 07:33:55 -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=rkkFJzMwUaC4ayLW9mzkgpwbfpEpmgya6G5Oc2Futpw=; b=LnbdgASWRp0ITWyxdCuJmigkYV3U8U7f1W7J5JL8oVfdixtjs+eDY1gVS8hkHZWpAL 80Bw+5lFfpPWsuSmi7HhSCbsGRdc2BnPPPF6GlqkGssaFrSo7yOZKNmJsK1GYs6Z08/j SkF6MjeKO8t6JiqAIj1rZa8nwbRQkqWNeT46s= 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=rkkFJzMwUaC4ayLW9mzkgpwbfpEpmgya6G5Oc2Futpw=; b=T7SEmsQKuLSfWhFIq/b8eF0g3jjL7oTk+hlvEs3qcM2R/7v5+jCJeICOIq8AWe8Myg k2Xfnlt8J5kcCnSpNOzAbHVmRazYuoZVCY0LQnVlZip5qH+Tg6AhQ4RQa9kNldxKbfx0 nIqlAAaqj13f4yUtbIhd0L5dLVvZooATcn1wilRTIm/5W8KXvwVi3vnLQW4ggnE8DL7t BYVVnbaOh15NPZHzw2LKNTsiUIYZ8J4jxtmW/lXI1o5DVV01OBCif5goNAeAzuX4ZOId oXThXGg8OTsGileVIUHAGuYAC0mwJ5kHSsdhgmxIW70JOUnQz+P4dtgBXLuLhU6kFXH8 t7LQ== X-Gm-Message-State: APt69E3Jfd6NPhw5ZicSLNdw5lrBuDv26wPxZrU07Jf8ZC1ccg6d2OyX 9oGehjZvWgunAUpVBQRWRelAXg== X-Google-Smtp-Source: AAOMgpcRwkFKeMa84AtLE+IMT95OkxKBOHjNRY66388ajJrcXuPbRvI+8K3lltgFLrP1Pi6FLo2T+g== X-Received: by 2002:a5d:4806:: with SMTP id l6-v6mr755303wrq.24.1529937234400; Mon, 25 Jun 2018 07:33:54 -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 s12-v6sm1321193wrr.43.2018.06.25.07.33.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:53 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Subject: [PATCH 07/11] ASoC: qdsp6: q6afe-dai: support dt based module loading Date: Mon, 25 Jun 2018 15:31:11 +0100 Message-Id: <20180625143115.8346-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180625_073359_293407_1DA8923B X-CRM114-Status: GOOD ( 11.83 ) 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: rohkumar@qti.qualcomm.com, devicetree@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, perex@perex.cz, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org, linux-arm-kernel@lists.infradead.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 --- sound/soc/qcom/qdsp6/q6afe-dai.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 5002dd05bf27..7fbf762a45ac 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -1290,9 +1290,17 @@ static int q6afe_dai_dev_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6afe_dai_device_id[] = { + { .compatible = "qcom,q6afe-dais" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, q6afe_dai_device_id); + static struct platform_driver q6afe_dai_platform_driver = { .driver = { .name = "q6afe-dai", + .of_match_table = of_match_ptr(q6afe_dai_device_id), }, .probe = q6afe_dai_dev_probe, .remove = q6afe_dai_dev_remove,