Skip to content

Commit

Permalink
staging: fix winbond build, needs delay.h
Browse files Browse the repository at this point in the history
winbond drivers use msleep() and delay(), so include linux/delay.h
in a common header file to prevent build errors.

drivers/staging/winbond/phy_calibration.c:987: error: implicit declaration of function 'msleep'
drivers/staging/winbond/phy_calibration.c:1556: error: implicit declaration of function 'udelay'
drivers/staging/winbond/reg.c:894: error: implicit declaration of function 'msleep'
drivers/staging/winbond/reg.c:1178: error: implicit declaration of function 'udelay'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Nov 19, 2010
1 parent a3a972a commit 412dc7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/winbond/sysdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#ifndef SYS_DEF_H
#define SYS_DEF_H

#include <linux/delay.h>

#define WB_LINUX
#define WB_LINUX_WPA_PSK

Expand Down

0 comments on commit 412dc7f

Please sign in to comment.