diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-11-24 10:54:01 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:03 -0500 |
commit | b42aeceb35c59484056b0eea81203a0911ebb50d (patch) | |
tree | f3e2cb6eaf976fcfe00be0ef2d71f708710c73f3 /drivers/s390/scsi | |
parent | de3dc57214a1466034ecc4d4ffb10331d34c09a3 (diff) |
[SCSI] zfcp: Remove suspend callback
The callback for suspend is not required because it contains exactly
the same functionality as the _set_offline routine does.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r-- | drivers/s390/scsi/zfcp_ccw.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c index 2433eaced20c..ca8dffcd1e02 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c | |||
@@ -37,22 +37,6 @@ void zfcp_ccw_adapter_put(struct zfcp_adapter *adapter) | |||
37 | spin_unlock_irqrestore(&zfcp_ccw_adapter_ref_lock, flags); | 37 | spin_unlock_irqrestore(&zfcp_ccw_adapter_ref_lock, flags); |
38 | } | 38 | } |
39 | 39 | ||
40 | static int zfcp_ccw_suspend(struct ccw_device *cdev) | ||
41 | |||
42 | { | ||
43 | struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); | ||
44 | |||
45 | if (!adapter) | ||
46 | return 0; | ||
47 | |||
48 | zfcp_erp_adapter_shutdown(adapter, 0, "ccsusp1", NULL); | ||
49 | zfcp_erp_wait(adapter); | ||
50 | |||
51 | zfcp_ccw_adapter_put(adapter); | ||
52 | |||
53 | return 0; | ||
54 | } | ||
55 | |||
56 | static int zfcp_ccw_activate(struct ccw_device *cdev) | 40 | static int zfcp_ccw_activate(struct ccw_device *cdev) |
57 | 41 | ||
58 | { | 42 | { |
@@ -291,7 +275,7 @@ struct ccw_driver zfcp_ccw_driver = { | |||
291 | .set_offline = zfcp_ccw_set_offline, | 275 | .set_offline = zfcp_ccw_set_offline, |
292 | .notify = zfcp_ccw_notify, | 276 | .notify = zfcp_ccw_notify, |
293 | .shutdown = zfcp_ccw_shutdown, | 277 | .shutdown = zfcp_ccw_shutdown, |
294 | .freeze = zfcp_ccw_suspend, | 278 | .freeze = zfcp_ccw_set_offline, |
295 | .thaw = zfcp_ccw_activate, | 279 | .thaw = zfcp_ccw_activate, |
296 | .restore = zfcp_ccw_activate, | 280 | .restore = zfcp_ccw_activate, |
297 | }; | 281 | }; |