From patchwork Tue Jun 26 09:20: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: 10488455 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 A9483602D8 for ; Tue, 26 Jun 2018 09:27:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A626E28856 for ; Tue, 26 Jun 2018 09:27:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B19D28868; Tue, 26 Jun 2018 09:27:12 +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 8A1CD28856 for ; Tue, 26 Jun 2018 09:27:11 +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=SeS7ImyFdbF41vVhm8BeqMpzsuX4tKupysT0X9PdDAo=; b=Q9zr8IdJOve1Re/p3urdHZYbWC /Cjjwg2E2xYoV8yU+KqMa8GdAZOA7wpezPswDeYDUDbiX0JVbM35Md+kqGJvEZNNlBNok2uOThiEP Sz3SJXA9PF+4/EAzmg4DwSV7jpV9yCA1kbxXPqgX+4HFIXgP87At1ggie7AvSuYa/P+sUgoshEPPN fwSZpPexMdrTeIXNK/r1Y0Ct3ubSeIFzSW4DjnzeWOyvtORMwPE3PPDkqipIZQ++dk16AOtDuV2ox uGY18YeA/XBP6qVCZLzw8FG+hOTMbJf+KnjdBrtgFlWWTFOiqSbjxK2+Yo434y7z5x23a/kBQxCND pGWMAZPw==; 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 1fXkFc-00048R-Tv; Tue, 26 Jun 2018 09:27:04 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXkBR-0000W2-0O for linux-arm-kernel@lists.infradead.org; Tue, 26 Jun 2018 09:22:51 +0000 Received: by mail-wm0-x243.google.com with SMTP id p126-v6so1040410wmb.2 for ; Tue, 26 Jun 2018 02:22:34 -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=IdXa8XV5jspUkJyntVmzVAz5Mc3ePJihh8ETQaG1HXM=; b=ePWo9yuVO/2z1B/h+W3Er1GYoaNz996t3L70NG7cvpoOr9gUnDnpyHFVrg592zarqL tr3NZoT90g+YJpKeVg/VCIyZ5jqw9PaDPZXwFnjepjhZHNpWDlsw/LMhvLOgZFlN9GBb 0DXSEUm3X2S7LkAFVRvRSSP5aVvddW4J2s8uM= 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=IdXa8XV5jspUkJyntVmzVAz5Mc3ePJihh8ETQaG1HXM=; b=meqZ6y10dA5oseaetQ2M5p+yOWFea+iStof+A+7zYd6kHj+tAxqrhtxDUJeCcSt+8C VRLgMnHOzqE6BSszEc5C0yzQJjnfOC7CU7vPXE3VYGB99/lhWHYYxu9aHcAtoJ093oHe O+VNN5VA0090LCt5lwCy1bN8X7+DCO+jFM7SVHXpllU0E6ZInGzBLR53Kj3ggxoN7c+B 4HzUrKOXYkn8/Cl5EPLTpJxlho6s0SRUW/+PWyIvZEhq4iS4NsyWVsHsgB7QJdAYLNtw zxrRvo4lZj9GV7++ktd1GrhEAmt7ze6A4XYKhTsTYi2YGKotMpKaV6fQp8FR9a+Xs4tY NkAg== X-Gm-Message-State: APt69E1soG4dR1MTwsNhU4XDPmbRUoJ1rsDyOI97Fh4eSWbwMdSeOdEL HPX4M/nytsgYsCukhqDAS5EYOQ== X-Google-Smtp-Source: AAOMgpeYiU3fXSavWK911hVvG02EbFYU2vmpmaP6PKiEMfo3YV8woVrv9afcr6aOT1ErnPIaWoD1Rw== X-Received: by 2002:a1c:c7c3:: with SMTP id x186-v6mr976651wmf.39.1530004953283; Tue, 26 Jun 2018 02:22:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jun 2018 02:22:32 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 09/12] ASoC: qdsp6: q6routing: support dt based module loading Date: Tue, 26 Jun 2018 10:20:13 +0100 Message-Id: <20180626092016.9296-10-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180626_022245_116431_81CE8FC3 X-CRM114-Status: GOOD ( 11.97 ) 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: devicetree@vger.kernel.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, tiwai@suse.com, perex@perex.cz, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, niklas.cassel@linaro.org, linux-kernel@vger.kernel.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 Acked-by: Niklas Cassel --- sound/soc/qcom/qdsp6/q6routing.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index 593f66b8622f..ab696bf8d1d3 100644 --- a/sound/soc/qcom/qdsp6/q6routing.c +++ b/sound/soc/qcom/qdsp6/q6routing.c @@ -993,9 +993,16 @@ 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,