Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755310Ab1BIUjm (ORCPT ); Wed, 9 Feb 2011 15:39:42 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:50645 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755024Ab1BIUji (ORCPT ); Wed, 9 Feb 2011 15:39:38 -0500 Date: Wed, 9 Feb 2011 21:39:00 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Ryan Mallon Cc: Jeremy Kerr , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Pitre , Dima Zavin , Lorenzo Pieralisi , Vincent Guittot , linux-sh@vger.kernel.org, Ben Herrenschmidt , Sascha Hauer , Paul Mundt , Saravana Kannan , Ben Dooks , Russell King Subject: Re: [RFC,PATCH 1/3] Add a common struct clk Message-ID: <20110209203900.GT27982@pengutronix.de> References: <1297233693.242364.862698430999.1.gpush@pororo> <4D52F73A.4010707@bluewatersys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4D52F73A.4010707@bluewatersys.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 24 Hi Ryan, On Thu, Feb 10, 2011 at 09:21:14AM +1300, Ryan Mallon wrote: > > +int clk_enable(struct clk *clk) > > +{ > > + unsigned long flags; > > + int ret = 0; > > + > > + spin_lock_irqsave(&clk->enable_lock, flags); > > WARN_ON(clk->prepare_count == 0); ? This is added in patch 3/3 Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- 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/