From patchwork Fri Nov 7 15:49:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 5253851 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9BF32C11AC for ; Fri, 7 Nov 2014 15:50:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F31C20145 for ; Fri, 7 Nov 2014 15:50:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EB7720138 for ; Fri, 7 Nov 2014 15:50:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbaKGPuC (ORCPT ); Fri, 7 Nov 2014 10:50:02 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:46039 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752115AbaKGPuA (ORCPT ); Fri, 7 Nov 2014 10:50:00 -0500 Received: by mail-wi0-f176.google.com with SMTP id h11so4975698wiw.9 for ; Fri, 07 Nov 2014 07:49:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ohskPTQEVAo7th/hdI8JHUuN3wPTdY09KpX5V2oOqUM=; b=LHWmDhxDpAdFAx034lZ+gIm8TfkQyv0EDo/C3gLn52RTXyv2blO44tg0XzRx5ncfsu /u/j7qtAN5t3SGFsXAha106ZAGoIgJgKVoBxSSqeKiTL/loeoQotfJchr3FolXhQ/gUY 9fETSZHykdz8lRgCvgZlGx5aG2d3TkGfLT6B3YfduBE6mP0XhB38I8kJH9KlP+EvrGRJ 8P/SIUyHJLFY6VR/rL7F8oq+AzdD4JH0uNY35T2hGgymtIeGb/5wULoR4poPLUwLu2qE GIlyUZppYW0nhJhPGv9gbPbOghchoYxMi1xWUie8TrLOsG6D6lp3LeY/0qOROAJZE8I4 oc8A== X-Received: by 10.180.187.234 with SMTP id fv10mr6372774wic.25.1415375399793; Fri, 07 Nov 2014 07:49:59 -0800 (PST) Received: from groucho.site (ipbcc296c3.dynamic.kabel-deutschland.de. [188.194.150.195]) by mx.google.com with ESMTPSA id mu4sm2504202wib.2.2014.11.07.07.49.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Nov 2014 07:49:59 -0800 (PST) From: Ulrich Hecht To: horms@verge.net.au, geert@linux-m68k.org, laurent.pinchart+renesas@ideasonboard.com Cc: mturquette@linaro.org, linux-sh@vger.kernel.org, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH v5 6/6] ARM: shmobile: sh73a0: disable legacy clock initialization Date: Fri, 7 Nov 2014 16:49:29 +0100 Message-Id: <1415375369-15209-7-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1415375369-15209-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1415375369-15209-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Disables sh73a0_clock_init() if CCF is enabled. Signed-off-by: Ulrich Hecht Acked-by: Laurent Pinchart --- arch/arm/mach-shmobile/setup-sh73a0.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 2955a08..3134bc1 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -742,7 +742,9 @@ void __init __weak sh73a0_register_twd(void) { } void __init sh73a0_earlytimer_init(void) { shmobile_init_delay(); +#ifndef CONFIG_COMMON_CLK sh73a0_clock_init(); +#endif shmobile_earlytimer_init(); sh73a0_register_twd(); } @@ -761,8 +763,9 @@ void __init sh73a0_add_early_devices(void) void __init sh73a0_add_standard_devices_dt(void) { /* clocks are setup late during boot in the case of DT */ +#ifndef CONFIG_COMMON_CLK sh73a0_clock_init(); - +#endif of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); }