diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2012-05-15 11:52:07 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-16 08:42:46 -0400 |
commit | b7a610f7b4cb95150ee58ea7454ca2ace10634c5 (patch) | |
tree | bf8ea737924dc421042740e0243edac8b52313c7 /drivers/s390/cio/device.h | |
parent | f2962dae0efd81fed06d0687f300725ab063587a (diff) |
s390/ccwgroup: exploit ccwdev_by_dev_id
Instead of finding devices via driver_find_device use the bus_find_device
wrapper get_ccwdev_by_dev_id. This allows us to get rid of the ccw_driver
argument of ccwgroup_create_dev and thus simplify the interface.
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
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.h')
-rw-r--r-- | drivers/s390/cio/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/device.h b/drivers/s390/cio/device.h index 179824b3082f..6bace6942396 100644 --- a/drivers/s390/cio/device.h +++ b/drivers/s390/cio/device.h | |||
@@ -101,6 +101,7 @@ int ccw_device_test_sense_data(struct ccw_device *); | |||
101 | void ccw_device_schedule_sch_unregister(struct ccw_device *); | 101 | void ccw_device_schedule_sch_unregister(struct ccw_device *); |
102 | int ccw_purge_blacklisted(void); | 102 | int ccw_purge_blacklisted(void); |
103 | void ccw_device_sched_todo(struct ccw_device *cdev, enum cdev_todo todo); | 103 | void ccw_device_sched_todo(struct ccw_device *cdev, enum cdev_todo todo); |
104 | struct ccw_device *get_ccwdev_by_dev_id(struct ccw_dev_id *dev_id); | ||
104 | 105 | ||
105 | /* Function prototypes for device status and basic sense stuff. */ | 106 | /* Function prototypes for device status and basic sense stuff. */ |
106 | void ccw_device_accumulate_irb(struct ccw_device *, struct irb *); | 107 | void ccw_device_accumulate_irb(struct ccw_device *, struct irb *); |