aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/ipmi/ipmi_watchdog.c')
-rw-r--r--drivers/char/ipmi/ipmi_watchdog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c
index 7ece9f3c8f70..2872c9575528 100644
--- a/drivers/char/ipmi/ipmi_watchdog.c
+++ b/drivers/char/ipmi/ipmi_watchdog.c
@@ -589,7 +589,7 @@ static void panic_halt_ipmi_heartbeat(void)
589 1); 589 1);
590} 590}
591 591
592static struct watchdog_info ident= 592static struct watchdog_info ident =
593{ 593{
594 .options = 0, /* WDIOF_SETTIMEOUT, */ 594 .options = 0, /* WDIOF_SETTIMEOUT, */
595 .firmware_version = 1, 595 .firmware_version = 1,
@@ -790,13 +790,13 @@ static int ipmi_fasync(int fd, struct file *file, int on)
790 790
791static int ipmi_close(struct inode *ino, struct file *filep) 791static int ipmi_close(struct inode *ino, struct file *filep)
792{ 792{
793 if (iminor(ino)==WATCHDOG_MINOR) 793 if (iminor(ino) == WATCHDOG_MINOR) {
794 {
795 if (expect_close == 42) { 794 if (expect_close == 42) {
796 ipmi_watchdog_state = WDOG_TIMEOUT_NONE; 795 ipmi_watchdog_state = WDOG_TIMEOUT_NONE;
797 ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB); 796 ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB);
798 } else { 797 } else {
799 printk(KERN_CRIT PFX "Unexpected close, not stopping watchdog!\n"); 798 printk(KERN_CRIT PFX
799 "Unexpected close, not stopping watchdog!\n");
800 ipmi_heartbeat(); 800 ipmi_heartbeat();
801 } 801 }
802 clear_bit(0, &ipmi_wdog_open); 802 clear_bit(0, &ipmi_wdog_open);