From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 1/1] ARM: OMAP2: Remove redundant check on osc refcount Date: Fri, 4 May 2007 09:23:27 -0700 Message-ID: <20070504162326.GD12331@atomide.com> References: <20070502182859.GK3520@atomide.com> <1178284764.21647.27.camel@Dogbert.NOE.nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1178284764.21647.27.camel@Dogbert.NOE.nokia.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: Igor Stoppa Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org * Igor Stoppa [070504 06:21]: > The usage of the external oscillator is handled already by > sleep_block and doesn't require any extra checking. > Incidentally this fixes a bug where N800 wouldn't enter retention > the first time the display would blank. > > Signed-off-by: Klaus Pedersen > > Signed-off-by: Igor Stoppa > --- > arch/arm/mach-omap2/pm.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c > index b3a0d9d..63e380f 100644 > --- a/arch/arm/mach-omap2/pm.c > +++ b/arch/arm/mach-omap2/pm.c > @@ -621,8 +621,6 @@ static int omap2_can_sleep(void) > return 0; > if (atomic_read(&sleep_block) > 0) > return 0; > - if (clk_get_usecount(osc_ck) > 1) > - return 0; > if (omap_dma_running()) > return 0; > Thanks, pushing today. Tony