Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64...
[linux-2.6-block.git] / drivers / watchdog / intel_scu_watchdog.c
index e13e65e996aa7b996f18232243642f7298f8532b..0caab6241eb77a84bd2911dbaa011be68498fd85 100644 (file)
@@ -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);