aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/vmwatchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/vmwatchdog.c')
-rw-r--r--drivers/s390/char/vmwatchdog.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/s390/char/vmwatchdog.c b/drivers/s390/char/vmwatchdog.c
index ee80e936d51..21a2a829bf4 100644
--- a/drivers/s390/char/vmwatchdog.c
+++ b/drivers/s390/char/vmwatchdog.c
@@ -93,23 +93,15 @@ static int vmwdt_keepalive(void)
93 93
94 func = vmwdt_conceal ? (wdt_init | wdt_conceal) : wdt_init; 94 func = vmwdt_conceal ? (wdt_init | wdt_conceal) : wdt_init;
95 ret = __diag288(func, vmwdt_interval, ebc_cmd, len); 95 ret = __diag288(func, vmwdt_interval, ebc_cmd, len);
96 WARN_ON(ret != 0);
96 kfree(ebc_cmd); 97 kfree(ebc_cmd);
97
98 if (ret) {
99 printk(KERN_WARNING "%s: problem setting interval %d, "
100 "cmd %s\n", __func__, vmwdt_interval,
101 vmwdt_cmd);
102 }
103 return ret; 98 return ret;
104} 99}
105 100
106static int vmwdt_disable(void) 101static int vmwdt_disable(void)
107{ 102{
108 int ret = __diag288(wdt_cancel, 0, "", 0); 103 int ret = __diag288(wdt_cancel, 0, "", 0);
109 if (ret) { 104 WARN_ON(ret != 0);
110 printk(KERN_WARNING "%s: problem disabling watchdog\n",
111 __func__);
112 }
113 return ret; 105 return ret;
114} 106}
115 107
@@ -122,10 +114,8 @@ static int __init vmwdt_probe(void)
122 static char __initdata ebc_begin[] = { 114 static char __initdata ebc_begin[] = {
123 194, 197, 199, 201, 213 115 194, 197, 199, 201, 213
124 }; 116 };
125 if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0) { 117 if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0)
126 printk(KERN_INFO "z/VM watchdog not available\n");
127 return -EINVAL; 118 return -EINVAL;
128 }
129 return vmwdt_disable(); 119 return vmwdt_disable();
130} 120}
131 121