diff options
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r-- | drivers/s390/cio/device.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 000c64129ed8..7bccca9684e5 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -125,10 +125,7 @@ static void io_subchannel_shutdown(struct subchannel *); | |||
125 | 125 | ||
126 | static struct css_driver io_subchannel_driver = { | 126 | static struct css_driver io_subchannel_driver = { |
127 | .subchannel_type = SUBCHANNEL_TYPE_IO, | 127 | .subchannel_type = SUBCHANNEL_TYPE_IO, |
128 | .drv = { | 128 | .name = "io_subchannel", |
129 | .name = "io_subchannel", | ||
130 | .bus = &css_bus_type, | ||
131 | }, | ||
132 | .irq = io_subchannel_irq, | 129 | .irq = io_subchannel_irq, |
133 | .notify = io_subchannel_notify, | 130 | .notify = io_subchannel_notify, |
134 | .verify = io_subchannel_verify, | 131 | .verify = io_subchannel_verify, |
@@ -167,7 +164,8 @@ init_ccw_bus_type (void) | |||
167 | if ((ret = bus_register (&ccw_bus_type))) | 164 | if ((ret = bus_register (&ccw_bus_type))) |
168 | goto out_err; | 165 | goto out_err; |
169 | 166 | ||
170 | if ((ret = driver_register(&io_subchannel_driver.drv))) | 167 | ret = css_driver_register(&io_subchannel_driver); |
168 | if (ret) | ||
171 | goto out_err; | 169 | goto out_err; |
172 | 170 | ||
173 | wait_event(ccw_device_init_wq, | 171 | wait_event(ccw_device_init_wq, |
@@ -187,7 +185,7 @@ out_err: | |||
187 | static void __exit | 185 | static void __exit |
188 | cleanup_ccw_bus_type (void) | 186 | cleanup_ccw_bus_type (void) |
189 | { | 187 | { |
190 | driver_unregister(&io_subchannel_driver.drv); | 188 | css_driver_unregister(&io_subchannel_driver); |
191 | bus_unregister(&ccw_bus_type); | 189 | bus_unregister(&ccw_bus_type); |
192 | destroy_workqueue(ccw_device_notify_work); | 190 | destroy_workqueue(ccw_device_notify_work); |
193 | destroy_workqueue(ccw_device_work); | 191 | destroy_workqueue(ccw_device_work); |