diff options
Diffstat (limited to 'drivers/watchdog/indydog.c')
| -rw-r--r-- | drivers/watchdog/indydog.c | 14 | 
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/watchdog/indydog.c b/drivers/watchdog/indydog.c index 6d90f7a2ce2..5d20cdd30ef 100644 --- a/drivers/watchdog/indydog.c +++ b/drivers/watchdog/indydog.c @@ -41,24 +41,15 @@ MODULE_PARM_DESC(nowayout,  static void indydog_start(void)  { -	u32 mc_ctrl0; -  	spin_lock(&indydog_lock); -	mc_ctrl0 = sgimc->cpuctrl0; -	mc_ctrl0 = sgimc->cpuctrl0 | SGIMC_CCTRL0_WDOG; -	sgimc->cpuctrl0 = mc_ctrl0; +	sgimc->cpuctrl0 |= SGIMC_CCTRL0_WDOG;  	spin_unlock(&indydog_lock);  }  static void indydog_stop(void)  { -	u32 mc_ctrl0; -  	spin_lock(&indydog_lock); - -	mc_ctrl0 = sgimc->cpuctrl0; -	mc_ctrl0 &= ~SGIMC_CCTRL0_WDOG; -	sgimc->cpuctrl0 = mc_ctrl0; +	sgimc->cpuctrl0 &= ~SGIMC_CCTRL0_WDOG;  	spin_unlock(&indydog_lock);  	pr_info("Stopped watchdog timer\n"); @@ -214,4 +205,3 @@ module_exit(watchdog_exit);  MODULE_AUTHOR("Guido Guenther <agx@sigxcpu.org>");  MODULE_DESCRIPTION("Hardware Watchdog Device for SGI IP22");  MODULE_LICENSE("GPL"); -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);  | 
