From 8a296c4ff1f83a0b1b4483a399539a0e5053b359 Mon Sep 17 00:00:00 2001 From: Igor Stoppa Date: Fri, 4 May 2007 09:23:11 -0700 Subject: [PATCH] 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 --- arch/arm/mach-omap2/pm.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.41.1