From: Igor Stoppa Date: Fri, 4 May 2007 16:23:11 +0000 (-0700) Subject: ARM: OMAP2: Remove redundant check on osc refcount X-Git-Tag: v2.6.21-omap1~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8a296c4ff1f83a0b1b4483a399539a0e5053b359;p=linux-2.6-omap-h63xx.git ARM: OMAP2: Remove redundant check on osc refcount 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 7c988adc63c..f6c0a268f21 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -616,8 +616,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;