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: 139855 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065631lji; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKw8X1IKQIB15fHeq+5u0BSmRt5/IFQoVcSZre0SP+m1JvDdIdVp30FXIT4h0PPaBFJlG+S X-Received: by 2002:a62:591a:: with SMTP id n26-v6mr13320443pfb.162.1529937242132; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937242; cv=none; d=google.com; s=arc-20160816; b=ioyjwFYk/ZTPnxzFs91VdPFcxTH7815IZ+7GTJNmqU9I1gXx9ZAZ3eZcEK1JpZe8jF T5z3KScqokXNBEPixvlpjtGcTPjlWnZUxxusufExcyQ3tKW4I5X3ocXllez3wbX56fuO dmov/BBJ675L0AcZ5zm6Qt69aS9UGEx/9i1BPdAFRMBdEhGChb1ifhPSDrPhEk9uf96D gqNh07YXNF3LX+VLEwKWXuIus93w1QpSdw+uadY3ZBOnd87Pyu6SJHwbXYisbczm4n/4 1VTHFZhD2fmFmZ0LMMGBRyoodzoOna2Tjnzh4xcIYjGVQAp9qYcqT2acfkX2hj1mKZ8S Sd8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=HlGTRq+E7PmkkIH0t3BK1s+soJImCKY7jNdJg1NEXBA=; b=STh8YN7dyIXqwFM4FyZeqfn9U5E4uLpM3B5zJzp09+CRC87hXs2piR5bUd5MxP/TQS CNizYw+MlVDduIgHJTMRIwg5URMg/1JTx82XpcddwTj+LaSLm5wP4ZNmpKGjJVU6WIEH Rr8+SW6Fs3+xeaw9Xcfuax5TTsfVOWaZng35WbRXE6r9gg6xFjDk/mJloiYrNshqmfj8 VFyYOUq/u38PXL3jl6RfXToagWia+cQzgSds+nJtZpWeh7sdgxiXim/Fb9tPJkSyft3s 2oqrMc6hQ+JW9qJZp2X5gWpcRNQ3xbrDgsQIcoFUePNDceKjl+Ms0COaYhSKdhNcO6XX l2YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jl/pXgGB"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si12023098pgn.171.2018.06.25.07.34.01; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jl/pXgGB"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934411AbeFYOeA (ORCPT + 5 others); Mon, 25 Jun 2018 10:34:00 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51120 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934397AbeFYOd4 (ORCPT ); Mon, 25 Jun 2018 10:33:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id e16-v6so9542169wmd.0 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=S/ybE78F7ICz+G6q3vOxmbX7Zw5DDzhJZqF6awsmehMTavF/Cf8JN7W5bpNqXDqcf5 XMwntUcTURcfdo9QY+POCdPe3o8bUo9T/Sg7YQYNsZBXCFw3s292NvQcVAowYTPiXhtT CYyjNLP07n7ziRPjoI5vQOpSTvhnDVt0q8mkQ04MN59cLeSTqrlpiqnJz5+s52DLFdKv 8QvicQUv9NKK7NzNEGL5z1GPq7vMwj/Lsxe4xzzgCdewRIADb7hh9+bn9xXrSmog/XMk eJ4i8Qtp+fPrDAXQGPddKZkODqdnyG/Ttpw+h1NW967kUtDzoSSoxRuKg0qF0LsWfaNh BeEw== X-Gm-Message-State: APt69E390W15ZElW1HL3k5dul9EpW0Z1NbtQ8O/m1R5KBNEl8SjLS9a2 JDpKFp2tvomvHVzawKHBDxyp4w== 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 Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,