From: Bill Pemberton Date: Sun, 26 Apr 2009 18:45:11 +0000 (-0400) Subject: Staging: comedi: replace for loop with msleep() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8605b3aa0c107b5df59e99dbde2e708aa0012efd;p=linux-beck.git Staging: comedi: replace for loop with msleep() Replace 2 attempts to use a for loop as a sleep with a call to msleep(). Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.c b/drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.c index 556ed46d78a7..6e9e7ed4dba9 100644 --- a/drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.c +++ b/drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.c @@ -180,7 +180,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead, } /* Sleep */ - for (i = 0; i < 10000; i++) ; + msleep(1); } w_ReadWord = diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c index 89d4e21b9954..9b53255bd45b 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c @@ -224,7 +224,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead, /* Sleep */ - for (i = 0; i < 10000; i++) ; + msleep(1); } w_ReadWord =