aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r--drivers/s390/cio/device.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 3943a4fde22a..7fb271c60c27 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -1433,12 +1433,22 @@ ccw_device_remove (struct device *dev)
1433 return 0; 1433 return 0;
1434} 1434}
1435 1435
1436static void ccw_device_shutdown(struct device *dev)
1437{
1438 struct ccw_device *cdev;
1439
1440 cdev = to_ccwdev(dev);
1441 if (cdev->drv && cdev->drv->shutdown)
1442 cdev->drv->shutdown(cdev);
1443}
1444
1436struct bus_type ccw_bus_type = { 1445struct bus_type ccw_bus_type = {
1437 .name = "ccw", 1446 .name = "ccw",
1438 .match = ccw_bus_match, 1447 .match = ccw_bus_match,
1439 .uevent = ccw_uevent, 1448 .uevent = ccw_uevent,
1440 .probe = ccw_device_probe, 1449 .probe = ccw_device_probe,
1441 .remove = ccw_device_remove, 1450 .remove = ccw_device_remove,
1451 .shutdown = ccw_device_shutdown,
1442}; 1452};
1443 1453
1444/** 1454/**