From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756460AbaIEP1N (ORCPT ); Fri, 5 Sep 2014 11:27:13 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:44690 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753383AbaIEP1M (ORCPT ); Fri, 5 Sep 2014 11:27:12 -0400 Message-ID: <5409D64D.4090501@atmel.com> Date: Fri, 5 Sep 2014 17:27:09 +0200 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Alexandre Belloni CC: Boris Brezillon , "Jean-Christophe Plagniol-Villard" , , Subject: Re: [PATCH] ARM: at91: rm9200: fix clock registration References: <1409926533-7853-1-git-send-email-alexandre.belloni@free-electrons.com> <5409D608.9040708@atmel.com> In-Reply-To: <5409D608.9040708@atmel.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/2014 17:26, Nicolas Ferre : > On 05/09/2014 16:15, Alexandre Belloni : >> Actually register clocks from device tree when using the common clock >> framework. >> >> Signed-off-by: Alexandre Belloni > > Indeed, thanks: I'll queue it in at91-3.18-fixes. s/18/17/ Sorry. > > Acked-by: Nicolas Ferre > > >> --- >> arch/arm/mach-at91/board-dt-rm9200.c | 11 ++++++++++- >> 1 file changed, 10 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm/mach-at91/board-dt-rm9200.c b/arch/arm/mach-at91/board-dt-rm9200.c >> index 61ea21445664..a598481a3570 100644 >> --- a/arch/arm/mach-at91/board-dt-rm9200.c >> +++ b/arch/arm/mach-at91/board-dt-rm9200.c >> @@ -14,6 +14,7 @@ >> #include >> #include >> #include >> +#include >> >> #include >> #include >> @@ -24,13 +25,21 @@ >> #include "at91_aic.h" >> #include "generic.h" >> >> +static void __init rm9200_dt_timer_init(void) >> +{ >> +#if defined(CONFIG_COMMON_CLK) >> + of_clk_init(NULL); >> +#endif >> + at91rm9200_timer_init(); >> +} >> + >> static const char *at91rm9200_dt_board_compat[] __initdata = { >> "atmel,at91rm9200", >> NULL >> }; >> >> DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") >> - .init_time = at91rm9200_timer_init, >> + .init_time = rm9200_dt_timer_init, >> .map_io = at91_map_io, >> .init_early = at91rm9200_dt_initialize, >> .dt_compat = at91rm9200_dt_board_compat, >> > > -- Nicolas Ferre