diff options
-rw-r--r-- | drivers/s390/cio/chp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/chp.c b/drivers/s390/cio/chp.c index d497aa05a72f..c692dfebd0ba 100644 --- a/drivers/s390/cio/chp.c +++ b/drivers/s390/cio/chp.c | |||
@@ -257,11 +257,11 @@ static ssize_t chp_status_write(struct device *dev, | |||
257 | if (!num_args) | 257 | if (!num_args) |
258 | return count; | 258 | return count; |
259 | 259 | ||
260 | if (!strnicmp(cmd, "on", 2) || !strcmp(cmd, "1")) { | 260 | if (!strncasecmp(cmd, "on", 2) || !strcmp(cmd, "1")) { |
261 | mutex_lock(&cp->lock); | 261 | mutex_lock(&cp->lock); |
262 | error = s390_vary_chpid(cp->chpid, 1); | 262 | error = s390_vary_chpid(cp->chpid, 1); |
263 | mutex_unlock(&cp->lock); | 263 | mutex_unlock(&cp->lock); |
264 | } else if (!strnicmp(cmd, "off", 3) || !strcmp(cmd, "0")) { | 264 | } else if (!strncasecmp(cmd, "off", 3) || !strcmp(cmd, "0")) { |
265 | mutex_lock(&cp->lock); | 265 | mutex_lock(&cp->lock); |
266 | error = s390_vary_chpid(cp->chpid, 0); | 266 | error = s390_vary_chpid(cp->chpid, 0); |
267 | mutex_unlock(&cp->lock); | 267 | mutex_unlock(&cp->lock); |