Skip to content

Commit

Permalink
Staging: bcm: Fix udelay related compilation error
Browse files Browse the repository at this point in the history
commit 6788d7d ("Staging: bcm: Use udelay instead of msleep for
delays in nvm.c") replaces msleep with udelay values. udelay values
of more than 1000 should be replaced by mdelay instead.

This fixes following build error.
ERROR: "__bad_udelay" [drivers/staging/bcm/bcm_wimax.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Cc: Kevin McKinney <klmckinney1@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tushar Behera authored and Greg Kroah-Hartman committed Sep 14, 2012
1 parent d42bb0f commit 8e360ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/bcm/nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ static int FlashSectorErase(struct bcm_mini_adapter *Adapter,
* the sector erase cycle is 500 ms to 40000 msec. hence sleeping 10 ms
* won't hamper performance in any case.
*/
udelay(10000);
mdelay(10);
} while ((uiStatus & 0x1) && (iRetries < 400));

if (uiStatus & 0x1) {
Expand Down

0 comments on commit 8e360ec

Please sign in to comment.