diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-01-26 08:10:39 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:10:57 -0500 |
commit | 602b20f2bf335d0d5fce11cb2ade22aa74e7ba25 (patch) | |
tree | 2fdbeca6df1c7c5f1dad9c8f70c128c42a2621d5 /drivers/s390/cio/device_fsm.c | |
parent | 084325d80418adf4d75b10a9ceff1348f2e09163 (diff) |
[S390] cio: css_driver: Use consistent parameters.
Make all callbacks in css_driver take a struct subchannel (and not
a struct device).
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_fsm.c')
-rw-r--r-- | drivers/s390/cio/device_fsm.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index 31c0f7885161..baca6c6c9855 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c | |||
@@ -399,7 +399,7 @@ ccw_device_oper_notify(struct work_struct *work) | |||
399 | sch = to_subchannel(cdev->dev.parent); | 399 | sch = to_subchannel(cdev->dev.parent); |
400 | if (sch->driver && sch->driver->notify) { | 400 | if (sch->driver && sch->driver->notify) { |
401 | spin_unlock_irqrestore(cdev->ccwlock, flags); | 401 | spin_unlock_irqrestore(cdev->ccwlock, flags); |
402 | ret = sch->driver->notify(&sch->dev, CIO_OPER); | 402 | ret = sch->driver->notify(sch, CIO_OPER); |
403 | spin_lock_irqsave(cdev->ccwlock, flags); | 403 | spin_lock_irqsave(cdev->ccwlock, flags); |
404 | } else | 404 | } else |
405 | ret = 0; | 405 | ret = 0; |
@@ -1273,21 +1273,4 @@ fsm_func_t *dev_jumptable[NR_DEV_STATES][NR_DEV_EVENTS] = { | |||
1273 | }, | 1273 | }, |
1274 | }; | 1274 | }; |
1275 | 1275 | ||
1276 | /* | ||
1277 | * io_subchannel_irq is called for "real" interrupts or for status | ||
1278 | * pending conditions on msch. | ||
1279 | */ | ||
1280 | void | ||
1281 | io_subchannel_irq (struct device *pdev) | ||
1282 | { | ||
1283 | struct ccw_device *cdev; | ||
1284 | |||
1285 | cdev = to_subchannel(pdev)->dev.driver_data; | ||
1286 | |||
1287 | CIO_TRACE_EVENT (3, "IRQ"); | ||
1288 | CIO_TRACE_EVENT (3, pdev->bus_id); | ||
1289 | if (cdev) | ||
1290 | dev_fsm_event(cdev, DEV_EVENT_INTERRUPT); | ||
1291 | } | ||
1292 | |||
1293 | EXPORT_SYMBOL_GPL(ccw_device_set_timeout); | 1276 | EXPORT_SYMBOL_GPL(ccw_device_set_timeout); |