Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp431861imu; Fri, 16 Nov 2018 04:57:26 -0800 (PST) X-Google-Smtp-Source: AJdET5dHTaqfJzXBJqC02MKRLH4Q+uDkAPhLUbNudEbRywtH3QfaBeFp+LiVMZ/k76w61Tx4bTPs X-Received: by 2002:a65:4784:: with SMTP id e4mr9634954pgs.12.1542373046602; Fri, 16 Nov 2018 04:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542373046; cv=none; d=google.com; s=arc-20160816; b=uh38e/wroDJ/WFherjtKW3uGcL7VnEJMxge2/tnrSdb9GrgeyDm5AA+y5Yzm0Qtg7p UkswZ275LEevkAR7YRkX1UFxnUYKFSMDhUzab4ewxh7CyIRr1rj8pggxdUNdUIAs/lAo Uf1hVQx0BWSRlthyu3uEpBxykklBsx8VrJYNRpudNvsDFxNpmd3cSDx07R5etHI2p6C5 fwt3ooMp/M6kfjPZWNQI0WYohvti/afXiCRP/xZNc6wXNb76n0jWsGN6E0G2OYCuEhfO NQR08si3e3LU87OgJWeb43KFqmaShbULA26mUXnVql13WsCfznxcBa9fu4UnWuEQrDoY npaw== 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=wnsjdBJamsED5V7ZZf40+5kK9gDcAZjaqjdB2m3AkjE=; b=0aZfDxNK6fYXqBoYcUmprGkIDoPL6h0dZcoYIEulw1MoZ//LX0I+yq3ouDJ/puQhNC xFc3d41eE7Y1cHKtsifhyPXfI4b0ui0T0zFkRnEKfMViz7+Ax9mGzdBbJiU/hI7u5bcJ b6Syn3vl2SMdeXhGTbQWv9B6mBEe2616KQ7WOwcIAgTewP3pRBOk2b0VoKSLC6mvkepM nSSyop5C02lwcJbh8wMnsskfCD179r0riMRiQS1bJrGSlEyk1Ouf/eGqoCPm+f7N5Ypv pD7LE9Hdv5oSKTotmd/lfmkTCmK1QRQ8YZMid+29kQCLnPXhdMKJnJHXXz+c4hK3WGWM K+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tlfdTNQq; 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 k25si3146311pfe.10.2018.11.16.04.57.12; Fri, 16 Nov 2018 04:57:26 -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=tlfdTNQq; 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 S2389999AbeKPXId (ORCPT + 99 others); Fri, 16 Nov 2018 18:08:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:34374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727965AbeKPXIc (ORCPT ); Fri, 16 Nov 2018 18:08:32 -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 0865E2251A; Fri, 16 Nov 2018 12:56:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542372974; bh=gYBMPs+aWjCk9+M58PG/AGP67bFb09qfWcas6aeoHyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tlfdTNQqWN8ogdL86XGWjwb9FD0K+2kb1GwoqilDXqNl3f+xJNaQbCEshsbnHKd58 mZcmysEBbsuTMFzsyNP6QTFPbT/GwHzgyBKbKLWS/6Rfgh9zYqhScJ6BoC61rWWsAR eFYE5ULlnNdoCmnQ5rL7u4ZXSvGool9ZmR9xYpeU= 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 11/12] clk: mediatek: mt2712e: Probe with new compatible Date: Fri, 16 Nov 2018 13:54:48 +0100 Message-Id: <20181116125449.23581-12-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-mt2712-mm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt2712-mm.c b/drivers/clk/mediatek/clk-mt2712-mm.c index a8b4b6d42488..5f4ee8f0deaa 100644 --- a/drivers/clk/mediatek/clk-mt2712-mm.c +++ b/drivers/clk/mediatek/clk-mt2712-mm.c @@ -138,14 +138,15 @@ static int clk_mt2712_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_CLK); - 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 != 0) pr_err("%s(): could not register clock provider: %d\n", @@ -155,7 +156,7 @@ static int clk_mt2712_mm_probe(struct platform_device *pdev) } static const struct of_device_id of_match_clk_mt2712_mm[] = { - { .compatible = "mediatek,mt2712-mmsys", }, + { .compatible = "mediatek,mt2712-mmsys-clk", }, {} }; -- 2.19.1