aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/qdio_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index 1974ec7bf0ed..8e6bc9cddfa0 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -1073,8 +1073,9 @@ EXPORT_SYMBOL_GPL(qdio_get_ssqd_desc);
1073 * @cdev: associated ccw device 1073 * @cdev: associated ccw device
1074 * @how: use halt or clear to shutdown 1074 * @how: use halt or clear to shutdown
1075 * 1075 *
1076 * This function calls qdio_shutdown() for @cdev with method @how 1076 * This function calls qdio_shutdown() for @cdev with method @how.
1077 * and on success qdio_free() for @cdev. 1077 * and qdio_free(). The qdio_free() return value is ignored since
1078 * !irq_ptr is already checked.
1078 */ 1079 */
1079int qdio_cleanup(struct ccw_device *cdev, int how) 1080int qdio_cleanup(struct ccw_device *cdev, int how)
1080{ 1081{
@@ -1085,8 +1086,8 @@ int qdio_cleanup(struct ccw_device *cdev, int how)
1085 return -ENODEV; 1086 return -ENODEV;
1086 1087
1087 rc = qdio_shutdown(cdev, how); 1088 rc = qdio_shutdown(cdev, how);
1088 if (rc == 0) 1089
1089 rc = qdio_free(cdev); 1090 qdio_free(cdev);
1090 return rc; 1091 return rc;
1091} 1092}
1092EXPORT_SYMBOL_GPL(qdio_cleanup); 1093EXPORT_SYMBOL_GPL(qdio_cleanup);