Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4898094imm; Tue, 26 Jun 2018 02:24:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLQfahr61QBm6PFC8rP9gEfCDwVw1D51a+1PRJg/J6+vUEXO0Rk7Y98rQejXxvDxcnpZxWF X-Received: by 2002:a65:5b8b:: with SMTP id i11-v6mr647526pgr.225.1530005090116; Tue, 26 Jun 2018 02:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530005090; cv=none; d=google.com; s=arc-20160816; b=g9NbOm7hhsdLFRH9XUtBnK1VI8M+myGsuyFwkybuj32edWjC3CLgV7jkn6dJ49hlgg P4+ZyeA5AzGm81MFrgCbTHc1ZQQauEdvle9RAJnhqdsJrhGAMSFutnuFOgxwtYNssAYv krEwyWFIjAgJKtqlEPik6pCoAuJ2bxvJUkqn8WgpCj6mxBwT0xdC4PMO3JbxHm/mToRw CJAen2PBvHKWEPWQ3ghRnpliMqVOR3QdYSMCRaZlq8QF4JpYworuX7cXdhj8OFExd4DY 8yHImrsd3jerrFXapkIi0xI4j1KNKMD7AjFh6vWLBruaCEF56mGGC++burtckN+M/YiK 2sRg== 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=Pyv1sGt65yF554e8vZ0B1y+2vFmmAQCdYZPZIKxIZYM=; b=bmhP5PcaCeZYQIT64Dm+oiMC7un6P1sfbjHzbZnWx/smNBk8IAA/GAF7QtyBic5rWc vFLyoQstYwxRU8JmTJPsKUVbD/Y9jPhjr4S4DZSQh/twBe2V4PohiCjohr1EVlhBaTKU N26IEazJ1LP2k9i3DSiBnx5KdwQ6nq17MrcAz5DDnfD2NBb2QrRmX26gCLzmBjhY61BF MItc5YTvQEVgKhNBROj/9hrMb2M2wAiNrI2W25pEVHIXNj3+65WW/3M+d4aPOsr7sXwH Pxp2gGbFxlRRHnqo97Sly9GMRj8nHiZUug6CmDWNmv5JcQGWqkaSupdEPWTPhJqt33tE wf+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FZNQGjeK; 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 v38-v6si1202601plg.283.2018.06.26.02.24.35; Tue, 26 Jun 2018 02:24:50 -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=FZNQGjeK; 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 S933972AbeFZJWi (ORCPT + 99 others); Tue, 26 Jun 2018 05:22:38 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44534 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933794AbeFZJWc (ORCPT ); Tue, 26 Jun 2018 05:22:32 -0400 Received: by mail-wr0-f193.google.com with SMTP id p12-v6so14823106wrn.11 for ; Tue, 26 Jun 2018 02:22:31 -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=UgQWYTOYW8hiZr/8amxZ/a9tykJlldoCmjAFrRSOLhOSM4KmH4JDEqGO19h4yZVYCV ejcJmri7SjUPa0Lrezb6Q2oANqSTUZU3jH7PnPkS2yiuM3DgOiq1cAPVqZa+X8Rfr6Ge rNzEIFeqC2dEl2iTveG0MRwZ+Y8ZZAywtcIyMPdjCYAtEFt1ii9b7LbB2IGFLvkZKfA+ EB0lFbJNMdDhwm5uYLr6rWhAAQs8oTZoXPqkF1SzlAUAfbo6ejb9iqcTKssCrlr7BZ9O RUB+5k2F8DshGAXkdxtOlfkazEQnOG3DvNThZXgsq9Ub0cvQDOez0NE+Wj41ynoyH/vO WT+A== X-Gm-Message-State: APt69E3DJjWIiWlETNM4r1gHoXgmgby9zZOSbsidGoaqPdJhy+cOGp6a POVJzvymH7wefTLtZgSjm+FjPA== 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 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 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> 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/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, -- 2.16.2