aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@linux.vnet.ibm.com>2013-08-22 11:49:32 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-09-03 10:27:55 -0400
commitee732ea8298ff5a38582f12354d9bbf0cb1faac1 (patch)
tree63ce5c8b2a52534d770ed810532bf8e9ec5576ae
parent75a1408d324890db2d454a1937d4dd77cab31915 (diff)
[SCSI] zfcp: cleanup use of obsolete strict_strto* functions
strict_strtoul and friends are obsolete. Use kstrtoul functions instead. Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com> Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/s390/scsi/zfcp_aux.c4
-rw-r--r--drivers/s390/scsi/zfcp_sysfs.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index 1b9e4aee914b..8004b071a9f2 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -104,11 +104,11 @@ static void __init zfcp_init_device_setup(char *devstr)
104 strncpy(busid, token, ZFCP_BUS_ID_SIZE); 104 strncpy(busid, token, ZFCP_BUS_ID_SIZE);
105 105
106 token = strsep(&str, ","); 106 token = strsep(&str, ",");
107 if (!token || strict_strtoull(token, 0, (unsigned long long *) &wwpn)) 107 if (!token || kstrtoull(token, 0, (unsigned long long *) &wwpn))
108 goto err_out; 108 goto err_out;
109 109
110 token = strsep(&str, ","); 110 token = strsep(&str, ",");
111 if (!token || strict_strtoull(token, 0, (unsigned long long *) &lun)) 111 if (!token || kstrtoull(token, 0, (unsigned long long *) &lun))
112 goto err_out; 112 goto err_out;
113 113
114 kfree(str_saved); 114 kfree(str_saved);
diff --git a/drivers/s390/scsi/zfcp_sysfs.c b/drivers/s390/scsi/zfcp_sysfs.c
index 3f01bbf0609f..091c4a42ee20 100644
--- a/drivers/s390/scsi/zfcp_sysfs.c
+++ b/drivers/s390/scsi/zfcp_sysfs.c
@@ -95,7 +95,7 @@ static ssize_t zfcp_sysfs_port_failed_store(struct device *dev,
95 struct zfcp_port *port = container_of(dev, struct zfcp_port, dev); 95 struct zfcp_port *port = container_of(dev, struct zfcp_port, dev);
96 unsigned long val; 96 unsigned long val;
97 97
98 if (strict_strtoul(buf, 0, &val) || val != 0) 98 if (kstrtoul(buf, 0, &val) || val != 0)
99 return -EINVAL; 99 return -EINVAL;
100 100
101 zfcp_erp_set_port_status(port, ZFCP_STATUS_COMMON_RUNNING); 101 zfcp_erp_set_port_status(port, ZFCP_STATUS_COMMON_RUNNING);
@@ -134,7 +134,7 @@ static ssize_t zfcp_sysfs_unit_failed_store(struct device *dev,
134 unsigned long val; 134 unsigned long val;
135 struct scsi_device *sdev; 135 struct scsi_device *sdev;
136 136
137 if (strict_strtoul(buf, 0, &val) || val != 0) 137 if (kstrtoul(buf, 0, &val) || val != 0)
138 return -EINVAL; 138 return -EINVAL;
139 139
140 sdev = zfcp_unit_sdev(unit); 140 sdev = zfcp_unit_sdev(unit);
@@ -184,7 +184,7 @@ static ssize_t zfcp_sysfs_adapter_failed_store(struct device *dev,
184 if (!adapter) 184 if (!adapter)
185 return -ENODEV; 185 return -ENODEV;
186 186
187 if (strict_strtoul(buf, 0, &val) || val != 0) { 187 if (kstrtoul(buf, 0, &val) || val != 0) {
188 retval = -EINVAL; 188 retval = -EINVAL;
189 goto out; 189 goto out;
190 } 190 }
@@ -236,7 +236,7 @@ static ssize_t zfcp_sysfs_port_remove_store(struct device *dev,
236 if (!adapter) 236 if (!adapter)
237 return -ENODEV; 237 return -ENODEV;
238 238
239 if (strict_strtoull(buf, 0, (unsigned long long *) &wwpn)) 239 if (kstrtoull(buf, 0, (unsigned long long *) &wwpn))
240 goto out; 240 goto out;
241 241
242 port = zfcp_get_port_by_wwpn(adapter, wwpn); 242 port = zfcp_get_port_by_wwpn(adapter, wwpn);
@@ -297,7 +297,7 @@ static ssize_t zfcp_sysfs_unit_add_store(struct device *dev,
297 u64 fcp_lun; 297 u64 fcp_lun;
298 int retval; 298 int retval;
299 299
300 if (strict_strtoull(buf, 0, (unsigned long long *) &fcp_lun)) 300 if (kstrtoull(buf, 0, (unsigned long long *) &fcp_lun))
301 return -EINVAL; 301 return -EINVAL;
302 302
303 retval = zfcp_unit_add(port, fcp_lun); 303 retval = zfcp_unit_add(port, fcp_lun);
@@ -315,7 +315,7 @@ static ssize_t zfcp_sysfs_unit_remove_store(struct device *dev,
315 struct zfcp_port *port = container_of(dev, struct zfcp_port, dev); 315 struct zfcp_port *port = container_of(dev, struct zfcp_port, dev);
316 u64 fcp_lun; 316 u64 fcp_lun;
317 317
318 if (strict_strtoull(buf, 0, (unsigned long long *) &fcp_lun)) 318 if (kstrtoull(buf, 0, (unsigned long long *) &fcp_lun))
319 return -EINVAL; 319 return -EINVAL;
320 320
321 if (zfcp_unit_remove(port, fcp_lun)) 321 if (zfcp_unit_remove(port, fcp_lun))