mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-03 12:54:38 +00:00
ixp4xx: include linux/slab.h in the latch LED driver
SVN-Revision: 22645
This commit is contained in:
parent
e35f7ef51d
commit
1a7021b3ea
@ -16,7 +16,7 @@
|
|||||||
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/leds/leds-latch.c
|
+++ b/drivers/leds/leds-latch.c
|
||||||
@@ -0,0 +1,149 @@
|
@@ -0,0 +1,150 @@
|
||||||
+/*
|
+/*
|
||||||
+ * LEDs driver for Memory Latched Devices
|
+ * LEDs driver for Memory Latched Devices
|
||||||
+ *
|
+ *
|
||||||
@ -35,6 +35,7 @@
|
|||||||
+#include <linux/workqueue.h>
|
+#include <linux/workqueue.h>
|
||||||
+#include <asm/io.h>
|
+#include <asm/io.h>
|
||||||
+#include <linux/spinlock.h>
|
+#include <linux/spinlock.h>
|
||||||
|
+#include <linux/slab.h>
|
||||||
+
|
+
|
||||||
+static unsigned int mem_keep = 0xFF;
|
+static unsigned int mem_keep = 0xFF;
|
||||||
+static spinlock_t mem_lock;
|
+static spinlock_t mem_lock;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/leds/leds-latch.c
|
+++ b/drivers/leds/leds-latch.c
|
||||||
@@ -0,0 +1,149 @@
|
@@ -0,0 +1,150 @@
|
||||||
+/*
|
+/*
|
||||||
+ * LEDs driver for Memory Latched Devices
|
+ * LEDs driver for Memory Latched Devices
|
||||||
+ *
|
+ *
|
||||||
@ -35,6 +35,7 @@
|
|||||||
+#include <linux/workqueue.h>
|
+#include <linux/workqueue.h>
|
||||||
+#include <asm/io.h>
|
+#include <asm/io.h>
|
||||||
+#include <linux/spinlock.h>
|
+#include <linux/spinlock.h>
|
||||||
|
+#include <linux/slab.h>
|
||||||
+
|
+
|
||||||
+static unsigned int mem_keep = 0xFF;
|
+static unsigned int mem_keep = 0xFF;
|
||||||
+static spinlock_t mem_lock;
|
+static spinlock_t mem_lock;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/leds/leds-latch.c
|
+++ b/drivers/leds/leds-latch.c
|
||||||
@@ -0,0 +1,149 @@
|
@@ -0,0 +1,150 @@
|
||||||
+/*
|
+/*
|
||||||
+ * LEDs driver for Memory Latched Devices
|
+ * LEDs driver for Memory Latched Devices
|
||||||
+ *
|
+ *
|
||||||
@ -35,6 +35,7 @@
|
|||||||
+#include <linux/workqueue.h>
|
+#include <linux/workqueue.h>
|
||||||
+#include <asm/io.h>
|
+#include <asm/io.h>
|
||||||
+#include <linux/spinlock.h>
|
+#include <linux/spinlock.h>
|
||||||
|
+#include <linux/slab.h>
|
||||||
+
|
+
|
||||||
+static unsigned int mem_keep = 0xFF;
|
+static unsigned int mem_keep = 0xFF;
|
||||||
+static spinlock_t mem_lock;
|
+static spinlock_t mem_lock;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/leds/leds-latch.c
|
+++ b/drivers/leds/leds-latch.c
|
||||||
@@ -0,0 +1,149 @@
|
@@ -0,0 +1,150 @@
|
||||||
+/*
|
+/*
|
||||||
+ * LEDs driver for Memory Latched Devices
|
+ * LEDs driver for Memory Latched Devices
|
||||||
+ *
|
+ *
|
||||||
@ -36,6 +36,7 @@
|
|||||||
+#include <linux/workqueue.h>
|
+#include <linux/workqueue.h>
|
||||||
+#include <asm/io.h>
|
+#include <asm/io.h>
|
||||||
+#include <linux/spinlock.h>
|
+#include <linux/spinlock.h>
|
||||||
|
+#include <linux/slab.h>
|
||||||
+
|
+
|
||||||
+static unsigned int mem_keep = 0xFF;
|
+static unsigned int mem_keep = 0xFF;
|
||||||
+static spinlock_t mem_lock;
|
+static spinlock_t mem_lock;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user