1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-04 23:30:43 +03:00

ixp4xx: include linux/slab.h in the latch LED driver

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22645 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2010-08-14 21:07:34 +00:00
parent 4ebeeb5634
commit 96de0c8f4f
4 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,7 @@
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
--- /dev/null
+++ b/drivers/leds/leds-latch.c
@@ -0,0 +1,149 @@
@@ -0,0 +1,150 @@
+/*
+ * LEDs driver for Memory Latched Devices
+ *
@ -35,6 +35,7 @@
+#include <linux/workqueue.h>
+#include <asm/io.h>
+#include <linux/spinlock.h>
+#include <linux/slab.h>
+
+static unsigned int mem_keep = 0xFF;
+static spinlock_t mem_lock;

View File

@ -16,7 +16,7 @@
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
--- /dev/null
+++ b/drivers/leds/leds-latch.c
@@ -0,0 +1,149 @@
@@ -0,0 +1,150 @@
+/*
+ * LEDs driver for Memory Latched Devices
+ *
@ -35,6 +35,7 @@
+#include <linux/workqueue.h>
+#include <asm/io.h>
+#include <linux/spinlock.h>
+#include <linux/slab.h>
+
+static unsigned int mem_keep = 0xFF;
+static spinlock_t mem_lock;

View File

@ -16,7 +16,7 @@
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
--- /dev/null
+++ b/drivers/leds/leds-latch.c
@@ -0,0 +1,149 @@
@@ -0,0 +1,150 @@
+/*
+ * LEDs driver for Memory Latched Devices
+ *
@ -35,6 +35,7 @@
+#include <linux/workqueue.h>
+#include <asm/io.h>
+#include <linux/spinlock.h>
+#include <linux/slab.h>
+
+static unsigned int mem_keep = 0xFF;
+static spinlock_t mem_lock;

View File

@ -16,7 +16,7 @@
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
--- /dev/null
+++ b/drivers/leds/leds-latch.c
@@ -0,0 +1,149 @@
@@ -0,0 +1,150 @@
+/*
+ * LEDs driver for Memory Latched Devices
+ *
@ -36,6 +36,7 @@
+#include <linux/workqueue.h>
+#include <asm/io.h>
+#include <linux/spinlock.h>
+#include <linux/slab.h>
+
+static unsigned int mem_keep = 0xFF;
+static spinlock_t mem_lock;