aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r--drivers/s390/cio/device.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 51bd3687d163..07b1a074beaf 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -1468,9 +1468,13 @@ static int io_subchannel_sch_event(struct subchannel *sch, int process)
1468 goto out; 1468 goto out;
1469 break; 1469 break;
1470 case IO_SCH_UNREG_ATTACH: 1470 case IO_SCH_UNREG_ATTACH:
1471 if (cdev->private->flags.resuming) {
1472 /* Device will be handled later. */
1473 rc = 0;
1474 goto out;
1475 }
1471 /* Unregister ccw device. */ 1476 /* Unregister ccw device. */
1472 if (!cdev->private->flags.resuming) 1477 ccw_device_unregister(cdev);
1473 ccw_device_unregister(cdev);
1474 break; 1478 break;
1475 default: 1479 default:
1476 break; 1480 break;