Subject: [PATCH -next] staging: brcm80211 needs lots of delay.h

From: Randy Dunlap <[email-masked]>
Date: Wed, 1 Dec 2010 11:16:35 -0800

From: Randy Dunlap <[email-masked]>

Fix lots of errors like:

drivers/staging/brcm80211/phy/wlc_phy_n.c:17613: error: implicit declaration of function 'mdelay'
drivers/staging/brcm80211/util/nicpci.c:246: error: implicit declaration of function 'udelay'

Signed-off-by: Randy Dunlap <[email-masked]>
Cc: Brett Rudley <[email-masked]>
Cc: Henry Ptasinski <[email-masked]>
Cc: Dowan Kim <[email-masked]>
Cc: Roland Vossen <[email-masked]>
Cc: Arend van Spriel <[email-masked]>
---
 drivers/staging/brcm80211/phy/wlc_phy_cmn.c |    1 +
 drivers/staging/brcm80211/phy/wlc_phy_lcn.c |    1 +
 drivers/staging/brcm80211/phy/wlc_phy_n.c   |    1 +
 drivers/staging/brcm80211/util/aiutils.c    |    1 +
 drivers/staging/brcm80211/util/bcmotp.c     |    1 +
 drivers/staging/brcm80211/util/hndpmu.c     |    1 +
 drivers/staging/brcm80211/util/nicpci.c     |    1 +
 drivers/staging/brcm80211/util/siutils.c    |    1 +
 8 files changed, 8 insertions(+)

--- linux-next-20101201.orig/drivers/staging/brcm80211/phy/wlc_phy_n.c
+++ linux-next-20101201/drivers/staging/brcm80211/phy/wlc_phy_n.c
@@ -18,6 +18,7 @@
 #include <linux/string.h>
 #include <bcmdefs.h>
 #include <wlc_cfg.h>
+#include <linux/delay.h>
 #include <linux/pci.h>
 #include <osl.h>
 #include <siutils.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/util/nicpci.c
+++ linux-next-20101201/drivers/staging/brcm80211/util/nicpci.c
@@ -14,6 +14,7 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/pci.h>
 #include <bcmdefs.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/util/siutils.c
+++ linux-next-20101201/drivers/staging/brcm80211/util/siutils.c
@@ -14,6 +14,7 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <bcmdefs.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/util/aiutils.c
+++ linux-next-20101201/drivers/staging/brcm80211/util/aiutils.c
@@ -14,6 +14,7 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <bcmdefs.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/util/bcmotp.c
+++ linux-next-20101201/drivers/staging/brcm80211/util/bcmotp.c
@@ -14,6 +14,7 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <bcmdefs.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/util/hndpmu.c
+++ linux-next-20101201/drivers/staging/brcm80211/util/hndpmu.c
@@ -13,6 +13,7 @@
  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/module.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/phy/wlc_phy_cmn.c
+++ linux-next-20101201/drivers/staging/brcm80211/phy/wlc_phy_cmn.c
@@ -20,6 +20,7 @@
 #include <linux/string.h>
 #include <bcmdefs.h>
 #include <osl.h>
+#include <linux/delay.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <bcmendian.h>
--- linux-next-20101201.orig/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
+++ linux-next-20101201/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <wlc_cfg.h>
 #include <qmath.h>
 #include <osl.h>