diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2012-10-29 11:50:20 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-11-23 05:14:28 -0500 |
commit | 287a0933237a227d1d6508de0ad6425b55a60476 (patch) | |
tree | d4b15f799b6858a07114f85cd1cbdb8e8d5e4259 /drivers/s390/cio/device.c | |
parent | 9368dac4367cd9a61ef75a745c6e26d0dd164172 (diff) |
s390: use ccw_device_get_schid
Let the dasd driver and qdio use ccw_device_get_schid and
get rid of other similar functions.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.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.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index fd3143c291c6..6995cff44636 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -2036,16 +2036,6 @@ void ccw_driver_unregister(struct ccw_driver *cdriver) | |||
2036 | driver_unregister(&cdriver->driver); | 2036 | driver_unregister(&cdriver->driver); |
2037 | } | 2037 | } |
2038 | 2038 | ||
2039 | /* Helper func for qdio. */ | ||
2040 | struct subchannel_id | ||
2041 | ccw_device_get_subchannel_id(struct ccw_device *cdev) | ||
2042 | { | ||
2043 | struct subchannel *sch; | ||
2044 | |||
2045 | sch = to_subchannel(cdev->dev.parent); | ||
2046 | return sch->schid; | ||
2047 | } | ||
2048 | |||
2049 | static void ccw_device_todo(struct work_struct *work) | 2039 | static void ccw_device_todo(struct work_struct *work) |
2050 | { | 2040 | { |
2051 | struct ccw_device_private *priv; | 2041 | struct ccw_device_private *priv; |
@@ -2138,4 +2128,3 @@ EXPORT_SYMBOL(ccw_device_set_offline); | |||
2138 | EXPORT_SYMBOL(ccw_driver_register); | 2128 | EXPORT_SYMBOL(ccw_driver_register); |
2139 | EXPORT_SYMBOL(ccw_driver_unregister); | 2129 | EXPORT_SYMBOL(ccw_driver_unregister); |
2140 | EXPORT_SYMBOL(get_ccwdev_by_busid); | 2130 | EXPORT_SYMBOL(get_ccwdev_by_busid); |
2141 | EXPORT_SYMBOL_GPL(ccw_device_get_subchannel_id); | ||