From patchwork Wed Jan 31 07:42:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryder Lee X-Patchwork-Id: 10193413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E65B5603EE for ; Wed, 31 Jan 2018 08:04:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7F0720881 for ; Wed, 31 Jan 2018 08:04:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB62A27031; Wed, 31 Jan 2018 08:04:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 46C6F20881 for ; Wed, 31 Jan 2018 08:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DcnEReGFPOm8v2KQ3tEgmkUGiv4EV97lt/1yxuNjVb8=; b=B9IZCyuequOcdO lAVhhcC/7vFAYyvqtSYZFp5aXWaBYaS+p05vYVfUuvw2F5/3afcySx/moBHollTrCN4wpBhcsjU3E rO81x3RA1hnGPENJ51AYlPuvHffGN1pJ231edaG5HCXjTnW/qEqz6mlT4Pq5TAIfSdDwsM8JnIQS2 giVnAO5ZVfXkQO297tgNKTVriVt0eqwMma+wkqU3tKB8bVqTlRzQ1Ej8TL81VRqpzjpACA/0wYaHa 23LSPHNjoq+RLXoYpUCtOX+moyvmzlAi3UG3vXBP2nkczT1uERUP0/pIA6MRXl7CSANn8kHGeEbdd oAwW3SYyiuMi0CBb7L+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egnNl-0000VO-1V; Wed, 31 Jan 2018 08:04:37 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egnMz-0007zt-P2; Wed, 31 Jan 2018 08:03:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=C6SgoFgUv9gNC1/8tni0Tp4AXxLu2FzrBKvti04b2bw=; b=hpk+GIahLlBBRb9xStMAiMv3I +s8buhfGRuMkpBuU1gOsyzWWxmZqFLXCunObqHHAGw7bfOo8r0pRE1A2jqVgxVV+ljnPE1GrFG8PS vk7xzFz3b36jxYjUlM7POW3mJNDKnTsiMM66LeyiHbVRlbhIRovhckBKzmYVlvnrokOQ7YiaHL9FB 8tKn2MFbIltrgMMaHdRLF4UHWXFSwI7efnayUGk6IXZagWlTJDJTuLiCQGfXqfEWNI2Vo09QDPL7i qI4eA+J+7GT9WRvM5R4CGYKaVQYJQPV7ZUJL8nFTdKpCMZlweLC3nOoc0t0LT9NGgObcroSVPXI8F V2w0sBTJQ==; Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egn81-0007xF-TJ; Wed, 31 Jan 2018 07:48:23 +0000 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 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 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180131_074822_225766_C846CE4A X-CRM114-Status: GOOD ( 13.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryder Lee , Garlic Tseng , linux-kernel@vger.kernel.org, Mark Brown , linux-mediatek@lists.infradead.org, Matthias Brugger , Lee Jones , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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);