aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_ccw.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-11-24 10:54:04 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:02:06 -0500
commitc1fad4176464281e776022dee7d029144afbeb13 (patch)
treec21502a9be5c0e500f4224565a054efbfa3d0254 /drivers/s390/scsi/zfcp_ccw.c
parentd9742b42b5c76e2a3a39de0d187fac4f6852134e (diff)
[SCSI] zfcp: Implement module unloading
With the reference counting for zfcp data structures, it is now possible to implement module unloading again. Module unloading requires to free all data structures in the module exit function. This is done by unregistering zfcp from s390 cio and the SCSI midlayer first in the module exit function. Reviewed-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/zfcp_ccw.c')
-rw-r--r--drivers/s390/scsi/zfcp_ccw.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c
index ca8dffcd1e02..4d35902a0cc5 100644
--- a/drivers/s390/scsi/zfcp_ccw.c
+++ b/drivers/s390/scsi/zfcp_ccw.c
@@ -279,14 +279,3 @@ struct ccw_driver zfcp_ccw_driver = {
279 .thaw = zfcp_ccw_activate, 279 .thaw = zfcp_ccw_activate,
280 .restore = zfcp_ccw_activate, 280 .restore = zfcp_ccw_activate,
281}; 281};
282
283/**
284 * zfcp_ccw_register - ccw register function
285 *
286 * Registers the driver at the common i/o layer. This function will be called
287 * at module load time/system start.
288 */
289int __init zfcp_ccw_register(void)
290{
291 return ccw_driver_register(&zfcp_ccw_driver);
292}