Received: by 10.192.165.148 with SMTP id m20csp4440914imm; Tue, 24 Apr 2018 02:49:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+OJnuJ3m7p4AUMo6sg4kwJnbERGH4DfUaltjQVa/l5peNnTNru1gcsSPStEkNgjWv9BRW5 X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr23919529plk.213.1524563370367; Tue, 24 Apr 2018 02:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524563370; cv=none; d=google.com; s=arc-20160816; b=tABtJYvHy4z5N1VU/5D0b4d3xISd9dCqcpFYRz5EAHTXarRkcp37T91w5/EKHVb3Yz XWi194LPWclZZHlQhtVJhSFNWGUpm9roVPRfONhryLi+9bSDJKgwycPLaG4E6+AiCMu1 F+OAKwoyXAO3+PEJR96fXsmoXSmnby9Tba2LSJ/W526yYcAreY8gCoA50sNc7tp7+G24 58m1yCXL2DdWU+bhiLMe+ky2bcMHo7jHeI+5lFc4swMWbeI6Mw/Y9AHVr7VJroEDhp2H dGR4ucEC8/nfH7W+4gGpY5TG+Ov4P8irmGkYNwv7YrdzrJlshU5G2kMZdQvwUr0uDLPy 4l6A== 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=FI7OT7NkJ0w89aVdTJH0L6yKhSIMXR/Is+CWzi+0AYh/I0CxD2kaTlyylrSWefh7Vj ztovhnTnWQLfGw8Ra/Z1UzEkCQ1iLqH6nlzzvpcNgLjKuzkFSd9FrK8+rq8fwH/NCe3l ackQi3Pnsp5wtmNNQru+z+pT7qr7t6blhULPEPwfgckRphIPEApGPM/Ef517BnZje+eR 7VLlrZxIun4s6DMaub6oz1Xq5KPIySjkLSnEnhIl2IAi+oWfkDi37eOKwyHX/JyMONRG Xgkya2gI8CcuuLPSPF2NDf7Ha3FAmg7nvT83abenx9ACIoJgCFB78XUZmY9R9Kqc7iss HFYA== 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 7-v6si13488620plf.552.2018.04.24.02.49.16; Tue, 24 Apr 2018 02:49:30 -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 S1756606AbeDXJrw (ORCPT + 99 others); Tue, 24 Apr 2018 05:47:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:47880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753347AbeDXJrr (ORCPT ); Tue, 24 Apr 2018 05:47:47 -0400 Received: from ziggy.de (144.pool85-56-49.dynamic.orange.es [85.56.49.144]) (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 2E6EC21836; Tue, 24 Apr 2018 09:47:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E6EC21836 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, pi-cheng.chen@linaro.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: [v2 resend 05/10] clk: mediatek: mt2701-mm: switch to mfd device Date: Tue, 24 Apr 2018 11:47:02 +0200 Message-Id: <16dd3041d81069f87422fd29b26d9d74c8a36293.1524563001.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