Skip to content

Commit b42aece

Browse files
sswenJames Bottomley
authored andcommitted
[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>
1 parent de3dc57 commit b42aece

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

drivers/s390/scsi/zfcp_ccw.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,6 @@ void zfcp_ccw_adapter_put(struct zfcp_adapter *adapter)
3737
spin_unlock_irqrestore(&zfcp_ccw_adapter_ref_lock, flags);
3838
}
3939

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-
5640
static int zfcp_ccw_activate(struct ccw_device *cdev)
5741

5842
{
@@ -291,7 +275,7 @@ struct ccw_driver zfcp_ccw_driver = {
291275
.set_offline = zfcp_ccw_set_offline,
292276
.notify = zfcp_ccw_notify,
293277
.shutdown = zfcp_ccw_shutdown,
294-
.freeze = zfcp_ccw_suspend,
278+
.freeze = zfcp_ccw_set_offline,
295279
.thaw = zfcp_ccw_activate,
296280
.restore = zfcp_ccw_activate,
297281
};

0 commit comments

Comments
 (0)