From patchwork Mon Jun 25 14:31: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: 10486481 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 27344601D5 for ; Mon, 25 Jun 2018 14:48:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DEFD28138 for ; Mon, 25 Jun 2018 14:48:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 118D22818E; Mon, 25 Jun 2018 14:48:56 +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 9CB7C28138 for ; Mon, 25 Jun 2018 14:48:55 +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=jip6oBwr73tc5uFIIX9xgGyJiMWz8p3MBPZDaHt7Z5Y=; b=TRsCfoU6DGKEJbnE2LB2R4qmSx mudEd5n1eSLkyOCXXuMRz4ZNUkFkcvUPq7BWMzBy+wcsLdGfM9WyFqQy/iFC9sMCNWKXkYlOGBQ7V 6hhRddlRfUe88vgif8OW1eS2lfcMAsfkK1yjPeumoSACQI5CgwwFG+HkmDJX7kUpgz34zGDzn0YH4 ZYZkxYsfEEc/Mtb9T5sswbguG4W9foMCvsZkF/5Psk7yp2WPfdMDDhvOOWyG4gVdwjmaRn2JiO/Is 3D9Ir8d0euTOoldvafjgxTGZVrU9lIyhsCSFJFnfmC1Ax63RtPe2Y3vgk9CkbFOu9m4Uq+DVhGNsK vlTlgVfw==; 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 1fXSnL-0007pH-BK; Mon, 25 Jun 2018 14:48:43 +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 1fXSZD-0003SM-8b for linux-arm-kernel@lists.infradead.org; Mon, 25 Jun 2018 14:34:09 +0000 Received: by mail-wm0-x241.google.com with SMTP id x6-v6so9527272wmc.3 for ; Mon, 25 Jun 2018 07:33:56 -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=+qvRbItA/G7OeOIq25CY9K/qaZ31ljwfkPtSCMBwAww=; b=jl/pXgGBaA8qApDuTiq1fFnt6s6lxMdKtAICH/fhEPDiXInhz+ywtYdTOmjlGuL41k zFbAqYXnOutwQVh8FpaAYWmdVpaLAOGyOfbAq7ZpSqk2Frsf1/v9A7/Ea+6RVDkcyFZY co+cDUMgRBtwqIsG3UzmM/AVWqgBGhDZgy+vk= 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=+qvRbItA/G7OeOIq25CY9K/qaZ31ljwfkPtSCMBwAww=; b=kMYTrHjcNMIgKnwVsdMQpBlLa4QoECDQAp1N9TDWV91nP2rgJT1hLW0iACMcOMt5ht gAM57KKdTUFwpEYchuCL6W6p7xeYot9yqLJsSOIz17NwlLqrTWao7crPj5cwSbLjCova 2ymtC8rfG7BGYfqMxNZ6/nlZy1mt8yaRxEf9hAIhawgYxq3+8glUT6E0JWVfpfvb4vtR qhMK+hFt+3tLZq10A+4qnN9E72SVaVZ9KYRscdLrJ3zjVwBcTY4mq4nGAekeKPMGzfDf lQM2m8L9TY5WYPBCdLDG17aKewyXEKoVL1sNd0Ap5YWy4CCzhAfr4ldQK2jZ+kjIRvu3 7wdQ== X-Gm-Message-State: APt69E1DJ9Q8s3ZD0xZK6TptGxf19SwVb9Uf+Q/gQQvUQ7iJb6XiM3YZ VoSFZz39n/6Fhp7d2cdKxHWF9w== X-Google-Smtp-Source: AAOMgpeFohvjZ2YrzAtgqgXYV8P7eSLqtASnvkEZHycR9VjEnrswJwxfmxZ61Rj70uM33B/WftalIw== X-Received: by 2002:a1c:e8c:: with SMTP id 134-v6mr1275457wmo.51.1529937235556; Mon, 25 Jun 2018 07:33:55 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:55 -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 08/11] ASoC: qdsp6: q6asm-dai: support dt based module loading Date: Mon, 25 Jun 2018 15:31:12 +0100 Message-Id: <20180625143115.8346-9-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_073407_317764_FF2796CA X-CRM114-Status: GOOD ( 12.33 ) 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/q6asm-dai.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 349c6a883c63..4ac9c66b2262 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -611,9 +611,17 @@ 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,