diff options
Diffstat (limited to 'drivers/watchdog/intel_scu_watchdog.c')
| -rw-r--r-- | drivers/watchdog/intel_scu_watchdog.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/watchdog/intel_scu_watchdog.c b/drivers/watchdog/intel_scu_watchdog.c index 9dda2d08af9..0caab6241eb 100644 --- a/drivers/watchdog/intel_scu_watchdog.c +++ b/drivers/watchdog/intel_scu_watchdog.c @@ -48,7 +48,7 @@  #include <linux/atomic.h>  #include <asm/intel_scu_ipc.h>  #include <asm/apb_timer.h> -#include <asm/mrst.h> +#include <asm/intel-mid.h>  #include "intel_scu_watchdog.h" @@ -211,7 +211,6 @@ static int intel_scu_set_heartbeat(u32 t)  	int			 ipc_ret;  	int			 retry_count;  	u32			 soft_value; -	u32			 hw_pre_value;  	u32			 hw_value;  	watchdog_device.timer_set = t; @@ -273,8 +272,7 @@ static int intel_scu_set_heartbeat(u32 t)  			watchdog_device.timer_load_count_addr);  		/* read count value before starting timer */ -		hw_pre_value = ioread32(watchdog_device.timer_load_count_addr); -		hw_pre_value = hw_pre_value & 0xFFFF0000; +		ioread32(watchdog_device.timer_load_count_addr);  		/* Start the timer */  		iowrite32(0x00000003, watchdog_device.timer_control_addr); @@ -445,7 +443,7 @@ static int __init intel_scu_watchdog_init(void)  	 *  	 * If it isn't an intel MID device then it doesn't have this watchdog  	 */ -	if (!mrst_identify_cpu()) +	if (!intel_mid_identify_cpu())  		return -ENODEV;  	/* Check boot parameters to verify that their initial values */ @@ -564,5 +562,4 @@ module_exit(intel_scu_watchdog_exit);  MODULE_AUTHOR("Intel Corporation");  MODULE_DESCRIPTION("Intel SCU Watchdog Device Driver");  MODULE_LICENSE("GPL"); -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);  MODULE_VERSION(WDT_VER);  | 
