aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-01-26 08:10:41 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-01-26 08:10:58 -0500
commit25b7bb5838ab81b68a9de72df577103d8b4aba3c (patch)
treeccbef7d152370e7a770788c103776af0fbe7fc47 /drivers/s390/cio/device.c
parent98c13c283a4e8b7f844f1f470abd7c756248fcc4 (diff)
[S390] cio: Add css_driver_{register,unregister}.
Add wrapper functions for driver_register and driver_unregister so that css drivers don't need to muck with struct device_driver directly. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r--drivers/s390/cio/device.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 000c64129ed..7bccca9684e 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
126static struct css_driver io_subchannel_driver = { 126static 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:
187static void __exit 185static void __exit
188cleanup_ccw_bus_type (void) 186cleanup_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);