From patchwork Mon Jun 25 14:31:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139858 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065756lji; Mon, 25 Jun 2018 07:34:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI3v9kryYsGBKYiwAQ0aZ3YGC+O7d1C9i8YsujXhh2OheX/QlfNr07Y0X7u1xDRkPy9bmpK X-Received: by 2002:a63:686:: with SMTP id 128-v6mr7715710pgg.338.1529937248117; Mon, 25 Jun 2018 07:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937248; cv=none; d=google.com; s=arc-20160816; b=YnBneK8Kcl6HpkobI0BZDSpw7CGeSEyLsrb1fS3iL+se1UCUvwwPdxNTb4XIJXeCus XCdnXu+QXDp+EweY9jHnb6GjmEcwIB0k/lxuy3AszChJrplVsRc8muSthm+v1aw1hLq6 Wo1yuJ3Sv+jxt9FdaL6+XDnkZGHJgr9SmtIogaHE+hEqiTyYd0ULk5l26l50qxEzYRSA +nTf3lyXUmAj68iOBQrDIZLLcXBnOkuvg0ygyKI3Q0J5wJQoUh6gi7lNnZtzcxBijYdg W1MjeImaGvC/Dz9z6qW7WiRTi6xlDfo/IrFg03SxZRJkTLecvCxJYUZx7wIq2hG61TVJ YH8w== 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=6Uw6Wa1cWM8nDlKlLGf0buZ5XZESZGogiXyU57RkyNQ=; b=CKmL0IQVgfL6j8aXwkY/4h+JQsZ39NKYjG5LeZiQX3B8DZx/jm620FIQBQIiCh8sRU 2AYDeCHQ11LlnBpRt6Qr1v3W+dBfjsM5svlyRflq6KgQWITwVjzrT2cqbF+Yc81R+i2Q 9lSJEJTlc/BTX6BTjOW6W027AbJVX28E8FPZF6VgTQ6CQLPdwnv7NxLU22o2GquyEhLz jRXYuZHO9/hr0a6976+HRqmwYzb58+MJXBhc/FuGHd6pfiMWSY8gwTJW9J0LybJ0cgcT 4jNSexFrLIPZU++JiLB+Az4cHgXMPtD8P59OQxyETakEBMlhDokU0dlIE/9pbK5veMXa gLOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cDplwqdn; 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.07; Mon, 25 Jun 2018 07:34:08 -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=cDplwqdn; 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 S934354AbeFYOeG (ORCPT + 5 others); Mon, 25 Jun 2018 10:34:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39887 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934404AbeFYOd5 (ORCPT ); Mon, 25 Jun 2018 10:33:57 -0400 Received: by mail-wm0-f66.google.com with SMTP id p11-v6so10257837wmc.4 for ; Mon, 25 Jun 2018 07:33:57 -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=bSiiyoWCO9K0VPh8OocYt9ngdl9pTHkmhGt9bl/h054=; b=cDplwqdnV3ESGe2O1bsCs3o05pBTlvA2pFm0WThAfgKg3mJ/Vg5rSfE5spSxb+u985 Acb9OVjNINrScxX4U1WT32QGnj47H724o1C5R0DM2OiJzE6vY4c5ypFYhhy9I7ktR5S/ RSR2zLU2ClOP5N0Qql6/viYY8IE5Od7Yvz9eo= 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=bSiiyoWCO9K0VPh8OocYt9ngdl9pTHkmhGt9bl/h054=; b=lh4fSj9xd44ZjE3akLE/iDJbpGEQVlcOWaFcoEUQv4blgBdCT2500qaIdqBZmypSDA m2BPp3X4Ni0WBd61FKsBAF+ueEMo3Uk6iErWHhyYeo8s6+PuJDT9i3wU++nZMY9AmHaB UEACDgb2XnE2K7Y3Cp2mmhdNkuoDGgQ0q19DSN+l9d44nFwKTq6PJDcPSnJIFcUXzwYG uuJcI7m83RtjFNIow8K0Eu1Kh1XQgeZ8x7JQhEJN4yw7YlC/oRFSRYWqgnk/QGE70u5b 3Ch7hMx1XmHIaiLEXc9hLQZebOu1U4G0HN+Py2CSGm4VPIU6JvfdZLWUrAo0HdFSyDxT Cvkw== X-Gm-Message-State: APt69E1eC2fa2B3jpZAYnA992cRix9AQf8cSfzbYoqysb05KboLMycVn qzPOcN6v4bUyuM7QXRGNQpU0LA== X-Received: by 2002:a1c:d748:: with SMTP id o69-v6mr1155719wmg.71.1529937236614; Mon, 25 Jun 2018 07:33:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:56 -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 09/11] ASoC: qdsp6: q6routing: support dt based module loading Date: Mon, 25 Jun 2018 15:31:13 +0100 Message-Id: <20180625143115.8346-10-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/q6routing.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/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index 593f66b8622f..caf2f847a886 100644 --- a/sound/soc/qcom/qdsp6/q6routing.c +++ b/sound/soc/qcom/qdsp6/q6routing.c @@ -993,9 +993,17 @@ static int q6pcm_routing_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6pcm_routing_device_id[] = { + { .compatible = "qcom,q6adm-routing" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, q6pcm_routing_device_id); + static struct platform_driver q6pcm_routing_platform_driver = { .driver = { .name = "q6routing", + .of_match_table = of_match_ptr(q6pcm_routing_device_id), }, .probe = q6pcm_routing_probe, .remove = q6pcm_routing_remove,