Skip to content

Commit

Permalink
[WATCHDOG] Clean-up includes
Browse files Browse the repository at this point in the history
Use #include <linux/io.h> instead of <asm/io.h>
Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
Clean-up includes.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Aug 6, 2008
1 parent 9e74114 commit 089ab07
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 20 deletions.
1 change: 0 additions & 1 deletion drivers/watchdog/acquirewdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
#include <linux/ioport.h> /* For io-port access */
#include <linux/platform_device.h> /* For platform_driver framework */
#include <linux/init.h> /* For __init/__exit/... */

#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
#include <linux/io.h> /* For inb/outb/... */

Expand Down
4 changes: 2 additions & 2 deletions drivers/watchdog/advantechwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/uaccess.h>

#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/system.h>

#define DRV_NAME "advantechwdt"
Expand Down
1 change: 0 additions & 1 deletion drivers/watchdog/alim1535_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/pci.h>

#include <linux/uaccess.h>
#include <linux/io.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/alim7101_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/pci.h>

#include <linux/io.h>
#include <linux/uaccess.h>

#include <asm/system.h>

#define OUR_NAME "alim7101_wdt"
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/bfin_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <asm/blackfin.h>
#include <linux/uaccess.h>
#include <asm/blackfin.h>

#define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args)
#define stampit() stamp("here i am")
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/geodewdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/uaccess.h>

#include <asm/uaccess.h>
#include <asm/geode.h>

#define GEODEWDT_HZ 500
Expand Down
1 change: 0 additions & 1 deletion drivers/watchdog/iTCO_vendor_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <linux/kernel.h> /* For printk/panic/... */
#include <linux/init.h> /* For __init/__exit/... */
#include <linux/ioport.h> /* For io-port access */

#include <linux/io.h> /* For inb/outb/... */

#include "iTCO_vendor.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/ib700wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#include <linux/spinlock.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>

#include <linux/io.h>
#include <linux/uaccess.h>

#include <asm/system.h>

static struct platform_device *ibwdt_platform_device;
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/ixp4xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/uaccess.h>

#include <asm/hardware.h>
#include <asm/uaccess.h>

static int nowayout = WATCHDOG_NOWAYOUT;
static int heartbeat = 60; /* (secs) Default is 1 minute */
Expand Down
1 change: 0 additions & 1 deletion drivers/watchdog/mv64x60_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/platform_device.h>

#include <linux/mv643xx.h>
#include <linux/uaccess.h>
#include <linux/io.h>
Expand Down
3 changes: 1 addition & 2 deletions drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
#include <linux/moduleparam.h>
#include <linux/clk.h>
#include <linux/bitops.h>

#include </io.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/hardware.h>

Expand Down
5 changes: 2 additions & 3 deletions drivers/watchdog/pcwd_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@
#include <linux/pci.h> /* For pci functions */
#include <linux/ioport.h> /* For io-port access */
#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */

#include <asm/uaccess.h> /* For copy_to_user/put_user/... */
#include <asm/io.h> /* For inb/outb/... */
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
#include <linux/io.h> /* For inb/outb/... */

/* Module and version information */
#define WATCHDOG_VERSION "1.03"
Expand Down
3 changes: 1 addition & 2 deletions drivers/watchdog/pcwd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
#include <linux/slab.h> /* For kmalloc, ... */
#include <linux/mutex.h> /* For mutex locking */
#include <linux/hid.h> /* For HID_REQ_SET_REPORT & HID_DT_REPORT */

#include <asm/uaccess.h> /* For copy_to_user/put_user/... */
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */


#ifdef CONFIG_USB_DEBUG
Expand Down
4 changes: 2 additions & 2 deletions drivers/watchdog/pnx4008_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/spinlock.h>

#include <asm/hardware.h>
#include <linux/uaccess.h>
#include <linux/io.h>

#include <asm/hardware.h>

#define MODULE_NAME "PNX4008-WDT: "

/* WatchDog Timer - Chapter 23 Page 207 */
Expand Down

0 comments on commit 089ab07

Please sign in to comment.