2002-11-17 03:17:34

by Matthew Wilcox

[permalink] [raw]
Subject: [PATCH] remove sched.h from parport.h


parport only needs jiffies.h, not sched.h

diff -urpNX dontdiff linux-2.5.47/include/linux/parport.h linux-2.5.47-pci/include/linux/parport.h
--- linux-2.5.47/include/linux/parport.h 2002-10-01 03:07:39.000000000 -0400
+++ linux-2.5.47-pci/include/linux/parport.h 2002-11-16 21:50:26.000000000 -0500
@@ -8,7 +8,6 @@

#ifndef _PARPORT_H_
#define _PARPORT_H_
-#include <linux/sched.h>

/* Start off with user-visible constants */

@@ -97,13 +96,14 @@ typedef enum {
/* The rest is for the kernel only */
#ifdef __KERNEL__

-#include <linux/wait.h>
+#include <linux/config.h>
+#include <linux/jiffies.h>
+#include <linux/proc_fs.h>
#include <linux/spinlock.h>
+#include <linux/wait.h>
#include <asm/system.h>
#include <asm/ptrace.h>
#include <asm/semaphore.h>
-#include <linux/proc_fs.h>
-#include <linux/config.h>

#define PARPORT_NEED_GENERIC_OPS


--
Revolutions do not require corporate support.