Skip to contentSkip to conversation

wdt: fix up header cleanups: add include linux/interrupt.h

PATCH New Arnaldo Carvalho de Melo 1 participant 1 message Nov 18, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wdt: fix up header cleanups: add include linux/interrupt.h

Linus,

Please pull from:

master.kernel.org:/home/acme/BK/includes-2.5

Now there is only this outstanding changeset.

- Arnaldo

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================

[email protected], 2002-11-18 10:38:27-02:00, [email protected]
o wdt: fix up header cleanups: add include linux/interrupt.h

Also some cleanups removing not needed includes and initializer style.

 eurotechwdt.c |   32 +++++++++++++-----------------
 wdt_pci.c     |   60 +++++++++++++++++++++++++++++-----------------------------
 2 files changed, 44 insertions(+), 48 deletions(-)
drivers/char/eurotechwdt.c +14 -18
diff -Nru a/drivers/char/eurotechwdt.c b/drivers/char/eurotechwdt.c
@@ -27,26 +27,26 @@
  */
 
 #include <linux/config.h>
+#include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/version.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
-#include <linux/smp_lock.h>
 #include <linux/miscdevice.h>
 #include <linux/watchdog.h>
 #include <linux/slab.h>
 #include <linux/ioport.h>
 #include <linux/fcntl.h>
-#include <asm/io.h>
-#include <asm/uaccess.h>
-#include <asm/system.h>
 #include <linux/notifier.h>
 #include <linux/reboot.h>
 #include <linux/init.h>
 #include <linux/spinlock.h>
 
+#include <asm/io.h>
+#include <asm/uaccess.h>
+#include <asm/system.h>
+
 static int eurwdt_is_open;
 static spinlock_t eurwdt_lock;
  
@@ -256,9 +256,9 @@
         unsigned int cmd, unsigned long arg)
 {
    static struct watchdog_info ident = {
-      options		: WDIOF_CARDRESET,
-      firmware_version	: 1,
-      identity		: "WDT Eurotech CPU-1220/1410"
+	.options	  = WDIOF_CARDRESET,
+	.firmware_version = 1,
+	.identity	  = "WDT Eurotech CPU-1220/1410",
    };
 
    int time;
@@ -396,11 +396,10 @@
         .release        = eurwdt_release,
 };
 
-static struct miscdevice eurwdt_miscdev =
-{
-        WATCHDOG_MINOR,
-        "watchdog",
-        &eurwdt_fops
+static struct miscdevice eurwdt_miscdev = {
+	.minor	= WATCHDOG_MINOR,
+	.name	= "watchdog",
+	.fops	= &eurwdt_fops
 };
  
 /*
@@ -408,11 +407,8 @@
  *      turn the timebomb registers off.
  */
  
-static struct notifier_block eurwdt_notifier =
-{
-        eurwdt_notify_sys,
-        NULL,
-        0
+static struct notifier_block eurwdt_notifier = {
+	.notifier_call = eurwdt_notify_sys,
 };
  
 /**
drivers/char/wdt_pci.c +30 -30

108 lines not on this page · raw message

===================================================================

This BitKeeper patch contains the following changesets:
1.890
## Wrapped with gzip_uu ##

begin 664 bkpatch15190 M'XL(`#[CV#T``]U7;6_B1A#^C'_%*)'ZI0%VO;M^0<WI..PDZ"X!$9*T:BMK M8R_!.K"1O227UOWOG74(>2=WU_3+<)X9G9>GIEY@&TX*571:<AXKJQM.,A+ MW6G$>:9BG5[*5IS/6^<%*D9YCHKV-)^K]H>/[32+9\M$E4V[)2Q4#Z6.IW"I MBK+3H"VVENCKA>HT1N'^R:?NR+)V=Z$WE=F%.E8:=G<MG1>7<I:4[Z6>SO*L MI0N9E7.EZ\#5VK2R";'Q*:C+B'JZA#N5C%-*)6<JH38W'.X96IX_SCW1UXH MI1YAPB>B(L)EUJMCR?+';E+:I!Y1TF->QW2:Q.X3LT[A9QN:Q/H;UM MSXHAAZM$=V"2?H'EJ9*)JJ>*9DMER4'9!)BOP899FRR_8"JV*8KG0K2D> MQU=W5N908J/6QZ!0\_PRS2X@RS5D2B5J[:4$F9F;5*=REOZ%P4I]/5,MZR-P MQGUK>-<QJ_F-#\LBDECO8&%FX7F(DB(U4]..I[)HJV61:Q5/$8%6O,8,WWSN M5]SV'5)102;L7/J)%.?*<Y+G^_.:6S,%U&:>S2KF>(['#=W\H$_]!,MXO1> MBM3EA+@5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