From patchwork Tue Jun 26 09:20: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: 10488449 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 A952B602D8 for ; Tue, 26 Jun 2018 09:26:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A78D328871 for ; Tue, 26 Jun 2018 09:26:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BACC2886E; Tue, 26 Jun 2018 09:26:44 +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 4EE2228857 for ; Tue, 26 Jun 2018 09:26:44 +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=uKtrh1ceBVEig6vz/x/A2LfqmUHjyFmXUKkYqUnKDqE=; b=tVhuuxH4Nl6NM983IfU18w3Lct IpX+SaPSBVQ//3IKd0WLkhCwZB/+isW3m1lOHqTaiSRJ9pZmsP08Kcwsu3wR12fglOGQCpe1MYROw xbQ5eNLMK9nGJFLaW7zaBgTraHTBrPo36YL7u/hbrNKBs2CEuabF1cEVFWcjAAXHWiIesK5AWML3Q 1qSwx6WEeEp1EpxJjinDU9Bz1djeaR/Qk3InBZuDhOrIjDEXPDG2Wkr+07Ur9Uhr/XNK8/fr3LK+X B8a7uJxEeT3cB2IrQhvLaIChUBTLSlyXidY0Mf+iQu7ZUj5W+5F88ylh5TBe9bOkzBr78VY5cTcpK yxFKnOyA==; 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 1fXkF4-0003qa-7L; Tue, 26 Jun 2018 09:26:30 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXkBO-0000Vg-PJ for linux-arm-kernel@lists.infradead.org; Tue, 26 Jun 2018 09:22:49 +0000 Received: by mail-wr0-x243.google.com with SMTP id c13-v6so6509907wrq.2 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=Pyv1sGt65yF554e8vZ0B1y+2vFmmAQCdYZPZIKxIZYM=; b=FZNQGjeKjhaMGmMQFLsKYA0/FjQDWD06mn2tZ67deyQBKg/HntOIvXMZ22FEzv72p1 SdF/ZuQ3EQZbmbv8jLd8QsICeJyYgtWaRCOvB1AalvoYZeAdUGMMnTbx5mPr+FUiMJQS OUPf/3EdgECvrbai4HCqXD1sCp0ZHwoN7hoKI= 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=Pyv1sGt65yF554e8vZ0B1y+2vFmmAQCdYZPZIKxIZYM=; b=dhxG/gtW1t6v/W+Drm1w2p6IHuF6RRzZFEOG1Does7rWHXlbYjIkGRCi/YWh7qOL6/ ptDgv9A9SUwa5aPO60JhKX8LiAcCibBgF6JxvIVAUhOXSsZOvyFsWZZb7ocgE+uv4pMq qn3BUBqyeZ7lrVaJQCPC7kpUcIgmI4bICYVCihCDo7rm0C/AlwvUcaFuY+myFXhK4BZp TANjnYVD/YGx/j3KRppIcU04u4uQGOOJcWk4NOsgC25Mo1NjhNNVUgxeFdVvjloI4eLO Siralnh4PV0ZhJgOatcUER3soXsf7axBhpHRiUtgnnqILA2PzYHvhXDYKGaaldMSeAh0 XCRQ== X-Gm-Message-State: APt69E0QAFSvp36n19hwNXZsXJY06vo9HoisUXB/Xm8+6xl4OckQmIx9 iDyZhmNmd4ADlGXohnrI5MR3jb8SPRA= X-Google-Smtp-Source: AAOMgpffIwoHFQ9gWeh21w+CSbJQCTVUnuqUPx50XdB1jM6YLo4Dp+Aov2GtD4D8/eTud+oEbPVEFg== X-Received: by 2002:adf:b710:: with SMTP id l16-v6mr741965wre.115.1530004951104; Tue, 26 Jun 2018 02:22:31 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jun 2018 02:22:30 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 07/12] ASoC: qdsp6: q6afe-dai: support dt based module loading Date: Tue, 26 Jun 2018 10:20:11 +0100 Message-Id: <20180626092016.9296-8-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_022242_869392_4D34BB4B X-CRM114-Status: GOOD ( 12.00 ) 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/q6afe-dai.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 5002dd05bf27..1d2e5013c121 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -1290,9 +1290,16 @@ 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,