lkml.org 
[lkml]   [2010]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] staging: fix winbond build, needs delay.h
From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
drivers/staging/winbond/sysdef.h | 3 +++
1 file changed, 3 insertions(+)

--- linux-next-20101119.orig/drivers/staging/winbond/sysdef.h
+++ linux-next-20101119/drivers/staging/winbond/sysdef.h
@@ -2,6 +2,9 @@

#ifndef SYS_DEF_H
#define SYS_DEF_H
+
+#include <linux/delay.h>
+
#define WB_LINUX
#define WB_LINUX_WPA_PSK


\
 
 \ /
  Last update: 2010-11-19 18:33    [W:0.075 / U:28.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site