Commit 8a296c4f authored by Igor Stoppa's avatar Igor Stoppa Committed by Tony Lindgren

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: default avatarKlaus Pedersen <klaus.k.pedersen@nokia.com>
Signed-off-by: default avatarIgor Stoppa <igor.stoppa@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 125e9be6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment