Skip to contentSkip to conversation

sa1100fb should use msleep

PATCH New Chuck Short 1 participant 1 message May 23, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sa1100fb should use msleep

Signed off by: Chuck Short <[email protected]>

drivers/video/sa1100fb.c +1 -2
diff -Naur linux-source-2.6.12-2.6.11.92.orig/drivers/video/sa1100fb.c linux-source-2.6.12-2.6.11.92/drivers/video/sa1100fb.c
@@ -1072,14 +1072,13 @@
 		GPCR |= SHANNON_GPIO_DISP_EN;
 	}	
 
-	set_current_state(TASK_UNINTERRUPTIBLE);
 	add_wait_queue(&fbi->ctrlr_wait, &wait);
 
 	LCSR = 0xffffffff;	/* Clear LCD Status Register */
 	LCCR0 &= ~LCCR0_LDM;	/* Enable LCD Disable Done Interrupt */
 	LCCR0 &= ~LCCR0_LEN;	/* Disable LCD Controller */
 
-	schedule_timeout(20 * HZ / 1000);
+	msleep(20);
 	remove_wait_queue(&fbi->ctrlr_wait, &wait);
 }
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors