From patchwork Tue May 7 15:52:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Longchamp X-Patchwork-Id: 2536011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 59FB3DF215 for ; Tue, 7 May 2013 15:53:33 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZkCY-0006XL-Hy; Tue, 07 May 2013 15:53:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZkCO-0007Je-QH; Tue, 07 May 2013 15:53:04 +0000 Received: from mail-de.keymile.com ([195.8.104.250]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZkCD-0007HG-Ix for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2013 15:52:54 +0000 Received: from frodo.de.keymile.net ([10.9.1.54]:52723 helo=mailrelay.de.keymile.net) by mail-de.keymile.com with esmtp (Exim 4.76) (envelope-from ) id 1UZkBs-0001WM-07; Tue, 07 May 2013 17:52:32 +0200 Received: from chber1-10533x.keymile.net (chber1-10533x.keymile.net [172.31.40.3]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id r47FoUxf016689; Tue, 7 May 2013 17:50:37 +0200 (MEST) From: Valentin Longchamp To: linux-arm-kernel@lists.infradead.org, andrew@lunn.ch, jason@lakedaemon.net Subject: [PATCH 2/3] ARM: kirkwood: look for alternative gate ctrl of node Date: Tue, 7 May 2013 17:52:20 +0200 Message-Id: <1367941941-19152-3-git-send-email-valentin.longchamp@keymile.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1367941941-19152-1-git-send-email-valentin.longchamp@keymile.com> References: <1367941941-19152-1-git-send-email-valentin.longchamp@keymile.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130507_115253_789822_8B1CF01D X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.2 (---) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-3.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: gregory.clement@free-electrons.com, Valentin Longchamp , devicetree-discuss@lists.ozlabs.org, sebastian.hesselbarth@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The search for the gate ctrl of node must now also look for the introduced compatible node. Signed-off-by: Valentin Longchamp --- arch/arm/mach-kirkwood/board-dt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index 7904758..3e607c9 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c @@ -44,6 +44,10 @@ static void __init kirkwood_legacy_clk_init(void) struct of_phandle_args clkspec; struct clk *clk; + if (np == NULL) + np = of_find_compatible_node(NULL, NULL, + "marvell,prestera-kw-gating-clock"); + clkspec.np = np; clkspec.args_count = 1;