diff mbox

OMAP2: PM: check UART status before trying to idle

Message ID 1286380338-4072-1-git-send-email-khilman@deeprootsystems.com (mailing list archive)
State Accepted
Commit eb8199aaf263a8b2768437910753d6f6866e498e
Delegated to: Tony Lindgren
Headers show

Commit Message

Kevin Hilman Oct. 6, 2010, 3:52 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c
index c1bceec..a40457d 100644
--- a/arch/arm/mach-omap2/pm24xx.c
+++ b/arch/arm/mach-omap2/pm24xx.c
@@ -245,6 +245,8 @@  static int omap2_can_sleep(void)
 {
 	if (omap2_fclks_active())
 		return 0;
+	if (!omap_uart_can_sleep())
+		return 0;
 	if (osc_ck->usecount > 1)
 		return 0;
 	if (omap_dma_running())