patch-2.4.4 linux/drivers/sbus/char/cpwatchdog.c

Next file: linux/drivers/sbus/char/max1617.h
Previous file: linux/drivers/sbus/char/bbc_i2c.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/sbus/char/cpwatchdog.c linux/drivers/sbus/char/cpwatchdog.c
@@ -199,7 +199,9 @@
 
 /* Forward declarations of internal methods
  */
+#ifdef WD_DEBUG
 static void wd_dumpregs(void);
+#endif
 static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs);
 static void wd_toggleintr(struct wd_timer* pTimer, int enable);
 static void wd_pingtimer(struct wd_timer* pTimer);
@@ -471,6 +473,7 @@
 static struct miscdevice wd1_miscdev = { WD1_MINOR, WD1_DEVNAME, &wd_fops };
 static struct miscdevice wd2_miscdev = { WD2_MINOR, WD2_DEVNAME, &wd_fops };
 
+#ifdef WD_DEBUG
 static void wd_dumpregs(void)
 {
 	/* Reading from downcounters initiates watchdog countdown--
@@ -507,6 +510,7 @@
 		(unsigned long)(&wd_dev.regs->pld_regs.status), 
 		readb(&wd_dev.regs->pld_regs.status));
 }
+#endif
 
 /* Enable or disable watchdog interrupts
  * Because of the CP1400 defect this should only be

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)