From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755813AbbHDKbY (ORCPT ); Tue, 4 Aug 2015 06:31:24 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:33001 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752407AbbHDKbX (ORCPT ); Tue, 4 Aug 2015 06:31:23 -0400 Message-ID: <55C09477.3080209@linaro.org> Date: Tue, 04 Aug 2015 12:31:19 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alexandre Belloni , Nicolas Ferre CC: Boris Brezillon , Maxime Ripard , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH 19/20] clocksource: atmel-st: get and use slow clock References: <1438215726-27452-1-git-send-email-alexandre.belloni@free-electrons.com> <1438215726-27452-20-git-send-email-alexandre.belloni@free-electrons.com> In-Reply-To: <1438215726-27452-20-git-send-email-alexandre.belloni@free-electrons.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/30/2015 02:22 AM, Alexandre Belloni wrote: > The current slow clock rate is hardcoded. Properly get the slow clock > and use its rate. > > Signed-off-by: Alexandre Belloni > --- [ ... ] > +struct clk *sclk; Do you need this variable global ? AFAICS, its scope is in the init function, no ? > +int timer_latch; static. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog