Received: by 10.192.165.148 with SMTP id m20csp489699imm; Fri, 27 Apr 2018 02:28:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZooF49IxlHHKpVKT0i1694GSiG521g87DgJG27hIp1qyiVO4ttkQY8mimPraWQa+umNjL6G X-Received: by 2002:a63:6f0f:: with SMTP id k15-v6mr1463006pgc.91.1524821322627; Fri, 27 Apr 2018 02:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524821322; cv=none; d=google.com; s=arc-20160816; b=KHBIR9CCBrH3rH4n9Z5Ow7MiVomY8LN00t3d14BYDKqWAaPgchfTf7EF1Bt0/i3ZPM TVms4jyQC0uDrc0x9Pvj1CWJdhOmSZn+ri22I71Cflk5ASGStqm21B+QQXbzfPYFsFW6 RGUVj2EkWomIMYKilBFxh3lVGmIKWYN0GY6r5j0CZxK1hi3c2l8HzLoYnrXy+oPcxCVB pb3RKphbcmi6a1pDwzNr3n+lT7GoR/9bZ5V6uJ1kPYxsYDaWfEq8H+JKbyn1yEaYPDsU LkoJcXu4kWfSGRH/No7ruYRpoMpIwu3jcDdVG4OOr/jJ6Mxk/0gznwY6IbrkbcGKCwPy 7tDw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=ljcDt4AGcEGzdtLHP9hRibjfu7gzvxrS4Sr3Hhz006k=; b=U793LP3qN5zwJzBmap/g+BZH3cuF6lN2lXwCH6L8JmD51z1sXCVTLsPAQ0OCsV1OCv lX7unf9NwziiG/F7Dy5pGnOS3UFAXkfceDyGayeewaCTWqO1TLcOljxKgd1slltXPUXJ ZERzEcuE99OfharYNmh4z37NhZGeUB2OKfWvv4OCSOXb+5e2nn0GWikESPlrGvh914Sa vh7HNT1Pyt32BgLz4JnNdoz/wc4S2v1gOAhVBnHQ6S8bWmVA9TBvbVUYBOLqeStYOi9g bF5LN1bpuMvgB6A135o32lPsrBJVPe12Ac9kmRQvqg29CRXjG0XQ5C+029Ra206h7C2a Z+pg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si936471pfd.47.2018.04.27.02.28.28; Fri, 27 Apr 2018 02:28:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbeD0JYt (ORCPT + 99 others); Fri, 27 Apr 2018 05:24:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:36888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757781AbeD0JYp (ORCPT ); Fri, 27 Apr 2018 05:24:45 -0400 Received: from ziggy.de (unknown [37.223.140.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CC3EB21880; Fri, 27 Apr 2018 09:24:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC3EB21880 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=matthias.bgg@kernel.org From: matthias.bgg@kernel.org To: ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org Cc: davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger Subject: [v3 05/10] clk: mediatek: mt2701-mm: switch to mfd device Date: Fri, 27 Apr 2018 11:23:57 +0200 Message-Id: <3230840517e3e5f3fcb4ea65482e5d86d3342f54.1524820923.git.mbrugger@suse.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt2701-mm.c b/drivers/clk/mediatek/clk-mt2701-mm.c index fe1f85072fc5..4517525887dd 100644 --- a/drivers/clk/mediatek/clk-mt2701-mm.c +++ b/drivers/clk/mediatek/clk-mt2701-mm.c @@ -87,16 +87,13 @@ static const struct mtk_gate mm_clks[] = { GATE_DISP1(CLK_MM_TVE_FMM, "mm_tve_fmm", "mm_sel", 14), }; -static const struct of_device_id of_match_clk_mt2701_mm[] = { - { .compatible = "mediatek,mt2701-mmsys", }, - {} -}; - static int clk_mt2701_mm_probe(struct platform_device *pdev) { struct clk_onecell_data *clk_data; int r; - struct device_node *node = pdev->dev.of_node; + struct device_node *node; + + node = pdev->dev.parent->of_node; clk_data = mtk_alloc_clk_data(CLK_MM_NR); @@ -116,7 +113,6 @@ static struct platform_driver clk_mt2701_mm_drv = { .probe = clk_mt2701_mm_probe, .driver = { .name = "clk-mt2701-mm", - .of_match_table = of_match_clk_mt2701_mm, }, }; -- 2.16.3