Skip to content

Commit

Permalink
driver/net: cosa driver uses udelay incorrectly
Browse files Browse the repository at this point in the history
In cosa driver, udelay with more than 20000 may cause __bad_udelay.
Use msleep for instead.

Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Li, Zhen-Hua authored and davem330 committed Apr 15, 2014
1 parent 2168746 commit 1dd333f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/wan/cosa.c
Expand Up @@ -1521,11 +1521,7 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring)
cosa_putstatus(cosa, 0);
cosa_getdata8(cosa);
cosa_putstatus(cosa, SR_RST);
#ifdef MODULE
msleep(500);
#else
udelay(5*100000);
#endif
/* Disable all IRQs from the card */
cosa_putstatus(cosa, 0);

Expand Down

0 comments on commit 1dd333f

Please sign in to comment.