Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753176Ab2HKJNS (ORCPT ); Sat, 11 Aug 2012 05:13:18 -0400 Received: from londo.lunn.ch ([80.238.139.98]:51842 "EHLO londo.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927Ab2HKJNP (ORCPT ); Sat, 11 Aug 2012 05:13:15 -0400 Date: Sat, 11 Aug 2012 11:12:55 +0200 From: Andrew Lunn To: Sebastian Hesselbarth Cc: Russell King , Jason Cooper , Andrew Lunn , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rabeeh Khoury , Ian Molton , Arnd Bergmann , Maen Suleiman , Olof Johansson Subject: Re: [PATCH 1/6] ARM: dove: unify clock setup Message-ID: <20120811091255.GA31809@lunn.ch> References: <1344255815-4457-1-git-send-email-sebastian.hesselbarth@gmail.com> <1344255815-4457-2-git-send-email-sebastian.hesselbarth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344255815-4457-2-git-send-email-sebastian.hesselbarth@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 26 Hi Sebastian > -static void __init clk_init(void) > +static void __init dove_clk_init(void) > { > tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT, > - get_tclk()); > + dove_tclk); > > orion_clkdev_init(tclk); > + > + /* Ensure tclk is always clocked */ > + clk_prepare_enable(tclk); > } "ticking" would be better than clocked. Since this is a root fixed clock, is it necessary to prepare_enable() it? I think prepare and enable become NOPs in this situation. Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/