From patchwork Fri Jun 20 10:44:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 4388161 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AE2C19F758 for ; Fri, 20 Jun 2014 10:45:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC3F9203B5 for ; Fri, 20 Jun 2014 10:45:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB73C20397 for ; Fri, 20 Jun 2014 10:45:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WxwHv-0002iI-SQ; Fri, 20 Jun 2014 10:43:19 +0000 Received: from gloria.sntech.de ([95.129.55.99]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WxwHt-0002eA-Nv for linux-arm-kernel@lists.infradead.org; Fri, 20 Jun 2014 10:43:18 +0000 Received: from ip9234425c.dynamic.kabel-deutschland.de ([146.52.66.92] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WxwHS-0000zl-Nd; Fri, 20 Jun 2014 12:42:50 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH 1/2] clocksource: arm_arch_timer: remove static from arch_timer_init Date: Fri, 20 Jun 2014 12:44:11 +0200 Message-ID: <3602534.r5eJA8RqrN@diego> User-Agent: KMail/4.11.5 (Linux/3.13-1-amd64; KDE/4.11.3; x86_64; ; ) In-Reply-To: <70167479.zcs3JF0luJ@diego> References: <70167479.zcs3JF0luJ@diego> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140620_034317_963992_21582740 X-CRM114-Status: GOOD ( 10.00 ) X-Spam-Score: -0.0 (/) Cc: Matthias Brugger , devicetree@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 There exist SoCs that need some special setup procedure for their architected-timer to work. Therefore allow arch_timer_init to be called from such specialized clocksources. Signed-off-by: Heiko Stuebner --- drivers/clocksource/arm_arch_timer.c | 2 +- drivers/clocksource/arm_arch_timer.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 drivers/clocksource/arm_arch_timer.h diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 5163ec1..55116d6 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -635,7 +635,7 @@ static void __init arch_timer_common_init(void) arch_timer_arch_init(); } -static void __init arch_timer_init(struct device_node *np) +void __init arch_timer_init(struct device_node *np) { int i; diff --git a/drivers/clocksource/arm_arch_timer.h b/drivers/clocksource/arm_arch_timer.h new file mode 100644 index 0000000..af3974d --- /dev/null +++ b/drivers/clocksource/arm_arch_timer.h @@ -0,0 +1,7 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +void __init arch_timer_init(struct device_node *np);