Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4898529imm; Tue, 26 Jun 2018 02:25:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJpCYh2kyIEK60k4Kuph9fRvjxjqeS1WaVnw3GUWo0FCrKofnjXsdVem7260wWQ8CwrNI6k X-Received: by 2002:a63:82c7:: with SMTP id w190-v6mr653245pgd.253.1530005126809; Tue, 26 Jun 2018 02:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530005126; cv=none; d=google.com; s=arc-20160816; b=sbGHmsInxV2MFn2hqJhYXyBE5qVw/OcRfj61eSbWGns7RjNhYyVPHxXI4NwF9dWH7r JyWGHGC7S2UMdBW6Yyo629TqNkXd2nGBwivBEhD8EQsg3VAlUweqvK1X4KMCBxXyfB3q EhcDNI2SbrG2pJpBBhS70zL27tEOhCuajIPYU46DGMGhX6WXYX2ocLinpNjQ2WETNKNH HAlf1NvlEGjQuM+Pf0Wbalu6jR7+QPpWFGfaTxR5yT1gdcQrNvuwqVQ+xLZT53TyBCS4 6LNkupW3KaOBVkKeiPem+sy78jaYN9zqAdXBguufCdS1CNZOvxikB6VLrcy8FOGBN6Wm a8uw== 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=dDHlQQyDgNgCnbd9tlc16D/4bHw7LUCY4jFdFkZ6Znk=; b=svWVTFHwa9V706r1m131GE9l/ICoQmR6arjOJsCXcuijOW1U8SehC9Dryfz7EVd/Bg iZTJz9I9hEHo8RuqB3asDcOiWoD2woO4yDv/w6midVoWp7wPpJi44De5oSAtGbaZ/jLe fBw0ru3eu5cz69AsUx9odvkresvXavZKjrclGXDHquJkOTUPjEJzf8fUbgUztrpI6teo NWYxdpM7ohBfnkyQyBGUJnRs9kiMh5c/zdXjDQ6gDYDVU+W8payCJiewN6oIcSuWQDJ/ MOmGBgQG9eAkQdH6pnt7MIGV0B5ggDIWCgFtYMwE8fCqZ/L5cNywBsjTRHNN9NKM6OnT JLFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+cyKahC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 h13-v6si1024996pgv.75.2018.06.26.02.25.12; Tue, 26 Jun 2018 02:25:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+cyKahC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934164AbeFZJX7 (ORCPT + 99 others); Tue, 26 Jun 2018 05:23:59 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36794 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933785AbeFZJWd (ORCPT ); Tue, 26 Jun 2018 05:22:33 -0400 Received: by mail-wm0-f67.google.com with SMTP id u18-v6so1006649wmc.1 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=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=T6MP7bNdm7rb9Rfd4S04LRvQi+Xy7aAKl7PXjDtKbeuLlRZdv0xPYHXI1XVNnO0EhL hp/7Aulvh/KE90cbeNG5GMqe9j+nFnu5wpknTzYu7n0HJirFrmy+QR2OXd9Yy/ClESQi 7cVC0ow9CZU3+lI2Ir0pD1m4mqZ5158a07HB/vct6qTTEqK4/41aVyCUW4kejFgwPpD1 SFI5mjiYU/7xQYUVvrM13nq3dw8Yx2bmYlxKc4v2Hp4t3oX8ir2OXRorGz4lnV/TTI9m ptdx+IKuCjGm7SeCZoxLuVzt7ZPwuJLyYSLPDcTMzEBX1fgdzxr03SUc2Y3mHzdJ67xe f//A== X-Gm-Message-State: APt69E2O0LnYghdVt+tRwcpi4H7TSAB/2CHNpOTPUr6t1Ud2UevNv4jM AgGABRBolnfgyyAybg5HhStxLW9GAJs= 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 Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, tiwai@suse.com, perex@perex.cz, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, niklas.cassel@linaro.org, Srinivas Kandagatla 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 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, -- 2.16.2