Skip to contentSkip to conversation

samsung-laptop: should include delay.h

PATCH In review Alexander Beregalov 2 participants 2 messages Aug 25, 2009 – Aug 26, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samsung-laptop: should include delay.h

Fix this build error:
drivers/platform/x86/samsung-laptop.c:141: error: implicit declaration of function 'msleep'

---
 drivers/platform/x86/samsung-laptop.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/platform/x86/samsung-laptop.c +1 -0
index c6f9a86..19e0ef2 100644
@@ -17,6 +17,7 @@
 #include <linux/fb.h>
 #include <linux/dmi.h>
 #include <linux/platform_device.h>
+#include <linux/delay.h>
 
 /*
  * This driver is needed because a number of Samsung laptops do not hook
Signature · 1 line
1.6.4
#1 lore raw
Quoted 13 lines · Alexander Beregalov

Fix this build error:
drivers/platform/x86/samsung-laptop.c:141: error: implicit declaration of function 'msleep'

---
 drivers/platform/x86/samsung-laptop.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/platform/x86/samsung-laptop.c +0 -0
index c6f9a86..19e0ef2 100644

drivers/platform/x86/samsung-laptop.c line 20

Quoted 4 lines
drivers/platform/x86/samsung-laptop.c +1 -0
@@ -17,6 +17,7 @@
 #include <linux/fb.h>
 #include <linux/dmi.h>
 #include <linux/platform_device.h>
+#include <linux/delay.h>

Thanks, I've merged this with the main version of the driver, the next time it shows up in linux-next (it is currently removed from there at the moment), it will have this change in it.

thanks,

greg k-h