Received: by 10.223.176.5 with SMTP id f5csp1022754wra; Tue, 30 Jan 2018 23:46:33 -0800 (PST) X-Google-Smtp-Source: AH8x22729MDMGi+sInZ9hkLrZlsAQZFqp5ERWMyeXQ/Dg6DLG/XiBpyvvrZYUTgrss5SARFMrZu/ X-Received: by 10.101.65.205 with SMTP id b13mr26068279pgq.280.1517384793761; Tue, 30 Jan 2018 23:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517384793; cv=none; d=google.com; s=arc-20160816; b=TKqRWP7uSV3DemKC0o/Q5cfYLvHTfQnUL3Lwz9d0bYa+YCvLvA77/05raxtN/RGoGY GvCVUI1a2j2trOZ7aWPmPtbwgPtKCJ56/mHPE0AkIQ5/iGYqb8bu4ld0iOCYKcLDL/pL U3v+ptf1X4hV+vaUeXtPAKpYywZ2OQ59e1SAzSoQVK+Vqlz/LJqCsclfuoh0/0xDUm4B 4KgBUYGM7UMUf8Vx4WyJuZ2Oon3q5d3s5rkT22pCL5IQmJhFSjCc7WghBxu2m3TZRgeZ ekdR+ctNbZiaaqf30bKXgPP1zzjcx47S6u6lMoC2lQGVbJGya1B4JlgXr6AbEyDvDFKU 985A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=C6SgoFgUv9gNC1/8tni0Tp4AXxLu2FzrBKvti04b2bw=; b=krZAj9yHg68UvUtpArPW7K69hNSX65C5xNTpIE+6+hb93KAqz4T90NVLp/KXMKU957 6Mn9VSlCkKpLcNONHGR0wJJEnRKJX+tIZfE2bUFpRxglkR52jBkjibXyvoECMC8dOqQw CBj/4SrX8Ob82Cib75JP5FXLb2ln5wQypsVhc6NXvohF/uzlzI8oAWcew8AQpxXhFamD mwKKU0Ku12CEdb0ZNhKA0CAeYdb0MjMCDox4m/WjwVCpyWBDz+3vPna179yJQll0fNCx YSTZgOBwItoFjpYJIktiW/nFKnKQqBy1oS8zsX9DxihrI60MznaCjIsMlSDsa8g9/4bK VWqw== 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 x7si1916679pgr.525.2018.01.30.23.46.19; Tue, 30 Jan 2018 23:46:33 -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; 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 S1753113AbeAaHoQ (ORCPT + 99 others); Wed, 31 Jan 2018 02:44:16 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:5321 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752944AbeAaHmw (ORCPT ); Wed, 31 Jan 2018 02:42:52 -0500 X-UUID: b85b37f1a178495bb18182ad272d3594-20180131 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 469794829; Wed, 31 Jan 2018 15:42:48 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 31 Jan 2018 15:42:47 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 31 Jan 2018 15:42:48 +0800 From: Ryder Lee To: Stephen Boyd , Rob Herring CC: Mark Brown , Lee Jones , Matthias Brugger , , , , , , Garlic Tseng , Ryder Lee Subject: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device Date: Wed, 31 Jan 2018 15:42:42 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the new MFD parent is in place, switch probing method to adapt it. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c index 13f752d..8c18536 100644 --- a/drivers/clk/mediatek/clk-mt7622-aud.c +++ b/drivers/clk/mediatek/clk-mt7622-aud.c @@ -142,11 +142,12 @@ static int clk_mt7622_audiosys_init(struct platform_device *pdev) { struct clk_onecell_data *clk_data; struct device_node *node = pdev->dev.of_node; + struct device_node *pnode = pdev->dev.parent->of_node; int r; clk_data = mtk_alloc_clk_data(CLK_AUDIO_NR_CLK); - mtk_clk_register_gates(node, audio_clks, ARRAY_SIZE(audio_clks), + mtk_clk_register_gates(pnode, audio_clks, ARRAY_SIZE(audio_clks), clk_data); r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); -- 1.9.1