Commit 1dd333f4 authored by Li, Zhen-Hua's avatar Li, Zhen-Hua Committed by David S. Miller

driver/net: cosa driver uses udelay incorrectly

In cosa driver, udelay with more than 20000 may cause __bad_udelay.
Use msleep for instead.
Signed-off-by: default avatarLi, Zhen-Hua <zhen-hual@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2168746c
...@@ -1521,11 +1521,7 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring) ...@@ -1521,11 +1521,7 @@ static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring)
cosa_putstatus(cosa, 0); cosa_putstatus(cosa, 0);
cosa_getdata8(cosa); cosa_getdata8(cosa);
cosa_putstatus(cosa, SR_RST); cosa_putstatus(cosa, SR_RST);
#ifdef MODULE
msleep(500); msleep(500);
#else
udelay(5*100000);
#endif
/* Disable all IRQs from the card */ /* Disable all IRQs from the card */
cosa_putstatus(cosa, 0); cosa_putstatus(cosa, 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