Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp431903imu; Fri, 16 Nov 2018 04:57:30 -0800 (PST) X-Google-Smtp-Source: AJdET5e9Qg7hvqGL2J1vrev+eyqOvKW3B8vw+K460dhX3Mu80nPiR9H8CstsF1gUhTiye+TbW0tB X-Received: by 2002:a63:f615:: with SMTP id m21mr7977358pgh.428.1542373050287; Fri, 16 Nov 2018 04:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542373050; cv=none; d=google.com; s=arc-20160816; b=TZIrGRqgVSQgBrNo8Xcw7nZ3IPW1SD9wn1f8D1C7ajYX/HfcELxbxOhEIfPCLmF7NI HXlP9TGhpkcl32HYfj7fRQPvsTlSj67lN78zZGoo7m2j5ZtApFiUCexGMJUOtFu5ignQ 7NCHgBPZrIj+BrBHSxayYNCx3Wju8PyWBHNhyyALK3NHri1vEbKslucdxA6XqQuW54PE Dui+nXPv1hmWk4oMcYmhxzw2DfurYFv+x8jjc/1rTvnxAlEKa2zCMDpY23M9WnTMmZKJ nCkvPXFS/S3ilSETdbNZ/tgYbGZqahv0HPzqK1QpgYdLwzkITh+o/FyodLylSbF0tFMc GuZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5rssFNyHCYcv+p3Q1nGB+ax0OfRhamK1WIzkq8SjIYc=; b=XchRdbQY2AhkRUxyf60nAXQhKVvdtKSat0IE/VDxU16xyT1n0i6BPiiEKjro/f1mH9 8mbJopDRdwmXGc1eAHCHU3saa6gRRNc8KW9KJtIpHCrVHkUoq1/AJMd2sAK8fgL2rmtN 9LLkeWQ1uKKuhgFOF9JdfDt7q29Vaezq951/kzkBZwOAIIkXopGvSrBUGaF31DFQH3C/ e460ZqHSfK2UF1MqCKLnuRghQAqF4jLNh1yO6Z7hc3ByjO7rsCzysOc+7CmTK4pPVP1e 05a08sP74pntBnPfJi886EjZ0rPfFduCwrqac6uZr8vD0HqNcsxJb5VpONAXB9k466Xc aCTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cEETgNew; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3-v6si34002197pfa.170.2018.11.16.04.57.16; Fri, 16 Nov 2018 04:57:30 -0800 (PST) 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=@kernel.org header.s=default header.b=cEETgNew; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390016AbeKPXIh (ORCPT + 99 others); Fri, 16 Nov 2018 18:08:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:34470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727965AbeKPXIg (ORCPT ); Fri, 16 Nov 2018 18:08:36 -0500 Received: from ziggy.de (unknown [93.176.133.217]) (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 4A35E2251C; Fri, 16 Nov 2018 12:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542372979; bh=d2YNHJQkRM6b3oaOr9H1mN3fDwnnlCcgnMLMxrEcyyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cEETgNewVlKfK4+9X5V+MXYsS4cnuCdlJWX1dx6UgbMN7spTQoF9LWZfPxi1fzl47 PC22/86FcQfHJIs2QuQnT/ndA+qho5lNGYZ67f6eBClRpGgHBUffY7xZCNoVsmmWmE Bmtm7RbOMaqKgryTGWNGMbUizoP2hlYJUGoOpZs0= From: matthias.bgg@kernel.org To: robh+dt@kernel.org, mark.rutland@arm.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, mturquette@baylibre.com, sboyd@codeaurora.org, ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, matthias.bgg@gmail.com Cc: sean.wang@mediatek.com, sean.wang@kernel.org, rdunlap@infradead.org, wens@csie.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Matthias Brugger Subject: [PATCH v5 12/12] clk: mediatek: mt6797: Probe with new compatible Date: Fri, 16 Nov 2018 13:54:49 +0100 Message-Id: <20181116125449.23581-13-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181116125449.23581-1-matthias.bgg@kernel.org> References: <20181116125449.23581-1-matthias.bgg@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger The clock node is now a child of the mmsys node. Update the driver to support this and thenew compatible in the driver. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6797-mm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6797-mm.c b/drivers/clk/mediatek/clk-mt6797-mm.c index c57d3eed270d..051bab99d10f 100644 --- a/drivers/clk/mediatek/clk-mt6797-mm.c +++ b/drivers/clk/mediatek/clk-mt6797-mm.c @@ -101,7 +101,7 @@ static const struct mtk_gate mm_clks[] = { }; static const struct of_device_id of_match_clk_mt6797_mm[] = { - { .compatible = "mediatek,mt6797-mmsys", }, + { .compatible = "mediatek,mt6797-mmsys-clk", }, {} }; @@ -109,14 +109,15 @@ static int clk_mt6797_mm_probe(struct platform_device *pdev) { struct clk_onecell_data *clk_data; int r; - struct device_node *node = pdev->dev.of_node; + struct device *parent = pdev->dev.parent; clk_data = mtk_alloc_clk_data(CLK_MM_NR); - mtk_clk_register_gates(node, mm_clks, ARRAY_SIZE(mm_clks), + mtk_clk_register_gates(parent->of_node, mm_clks, ARRAY_SIZE(mm_clks), clk_data); - r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); + r = of_clk_add_provider(parent->of_node, of_clk_src_onecell_get, + clk_data); if (r) dev_err(&pdev->dev, "could not register clock provider: %s: %d\n", -- 2.19.1