Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog

* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
watchdog: booke_wdt: fix build - unconstify watchdog_info
watchdog: sbc_fitpc2_wdt: fixed "scheduling while atomic" bug.
watchdog: sbc_fitpc2_wdt: fixed I/O operations order
Watchdog: sb_wdog.c: Fix sibyte watchdog initialization

+10 -10
+1 -1
drivers/watchdog/booke_wdt.c
··· 121 121 return count; 122 122 } 123 123 124 - static const struct watchdog_info ident = { 124 + static struct watchdog_info ident = { 125 125 .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING, 126 126 .identity = "PowerPC Book-E Watchdog", 127 127 };
+2 -2
drivers/watchdog/sb_wdog.c
··· 67 67 void sbwdog_set(char __iomem *wdog, unsigned long t) 68 68 { 69 69 spin_lock(&sbwd_lock); 70 - __raw_writeb(0, wdog - 0x10); 71 - __raw_writeq(t & 0x7fffffUL, wdog); 70 + __raw_writeb(0, wdog); 71 + __raw_writeq(t & 0x7fffffUL, wdog - 0x10); 72 72 spin_unlock(&sbwd_lock); 73 73 } 74 74
+7 -7
drivers/watchdog/sbc_fitpc2_wdt.c
··· 30 30 static int nowayout = WATCHDOG_NOWAYOUT; 31 31 static unsigned int margin = 60; /* (secs) Default is 1 minute */ 32 32 static unsigned long wdt_status; 33 - static DEFINE_SPINLOCK(wdt_lock); 33 + static DEFINE_MUTEX(wdt_lock); 34 34 35 35 #define WDT_IN_USE 0 36 36 #define WDT_OK_TO_CLOSE 1 ··· 45 45 46 46 static void wdt_send_data(unsigned char command, unsigned char data) 47 47 { 48 - outb(command, COMMAND_PORT); 49 - msleep(100); 50 48 outb(data, DATA_PORT); 51 49 msleep(200); 50 + outb(command, COMMAND_PORT); 51 + msleep(100); 52 52 } 53 53 54 54 static void wdt_enable(void) 55 55 { 56 - spin_lock(&wdt_lock); 56 + mutex_lock(&wdt_lock); 57 57 wdt_send_data(IFACE_ON_COMMAND, 1); 58 58 wdt_send_data(REBOOT_COMMAND, margin); 59 - spin_unlock(&wdt_lock); 59 + mutex_unlock(&wdt_lock); 60 60 } 61 61 62 62 static void wdt_disable(void) 63 63 { 64 - spin_lock(&wdt_lock); 64 + mutex_lock(&wdt_lock); 65 65 wdt_send_data(IFACE_ON_COMMAND, 0); 66 66 wdt_send_data(REBOOT_COMMAND, 0); 67 - spin_unlock(&wdt_lock); 67 + mutex_unlock(&wdt_lock); 68 68 } 69 69 70 70 static int fitpc2_wdt_open(struct inode *inode, struct file *file)