[PATCH -next] staging/intel_sst: intelmid needs delay.h

Randy Dunlap randy.dunlap at oracle.com
Tue Apr 19 18:26:35 UTC 2011

From: Randy Dunlap <randy.dunlap at oracle.com>

intel_sst drivers need to #include <linux/delay.h> so that
they build cleanly:

drivers/staging/intel_sst/intelmid_v1_control.c:188: error: implicit declaration of function 'msleep'
drivers/staging/intel_sst/intelmid_v2_control.c:172: error: implicit declaration of function 'msleep'

Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Cc: Vinod Koul <vinod.koul at intel.com>
Cc: Harsha Priya <priya.harsha at intel.com>
Cc: KP Jeeja <jeeja.kp at intel.com>
Cc: Dharageswari R <dharageswari.r at intel.com>
 drivers/staging/intel_sst/intelmid_v1_control.c |    1 +
 drivers/staging/intel_sst/intelmid_v2_control.c |    1 +
 2 files changed, 2 insertions(+)

--- linux-next-20110419.orig/drivers/staging/intel_sst/intelmid_v1_control.c
+++ linux-next-20110419/drivers/staging/intel_sst/intelmid_v1_control.c
@@ -28,6 +28,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 #include <linux/pci.h>
+#include <linux/delay.h>
 #include <linux/file.h>
 #include <asm/mrst.h>
 #include <sound/pcm.h>
--- linux-next-20110419.orig/drivers/staging/intel_sst/intelmid_v2_control.c
+++ linux-next-20110419/drivers/staging/intel_sst/intelmid_v2_control.c
@@ -29,6 +29,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 #include <linux/pci.h>
+#include <linux/delay.h>
 #include <linux/file.h>
 #include "intel_sst.h"
 #include "intelmid_snd_control.h"

More information about the devel mailing list