summaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-05-15 17:52:07 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-05-16 14:42:46 +0200
commitb7a610f7b4cb95150ee58ea7454ca2ace10634c5 (patch)
treebf8ea737924dc421042740e0243edac8b52313c7 /arch/s390/include
parentf2962dae0efd81fed06d0687f300725ab063587a (diff)
downloadlinux-b7a610f7b4cb95150ee58ea7454ca2ace10634c5.tar.gz
linux-b7a610f7b4cb95150ee58ea7454ca2ace10634c5.tar.bz2
linux-b7a610f7b4cb95150ee58ea7454ca2ace10634c5.zip
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 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/ccwgroup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/ccwgroup.h b/arch/s390/include/asm/ccwgroup.h
index f5cfb7925867..70c3d4d2efe8 100644
--- a/arch/s390/include/asm/ccwgroup.h
+++ b/arch/s390/include/asm/ccwgroup.h
@@ -66,8 +66,8 @@ struct ccwgroup_driver {
extern int ccwgroup_driver_register (struct ccwgroup_driver *cdriver);
extern void ccwgroup_driver_unregister (struct ccwgroup_driver *cdriver);
int ccwgroup_create_dev(struct device *root, unsigned int creator_id,
- struct ccw_driver *cdrv, struct ccwgroup_driver *gdrv,
- int num_devices, const char *buf);
+ struct ccwgroup_driver *gdrv, int num_devices,
+ const char *buf);
int ccwgroup_create_from_string(struct device *root, unsigned int creator_id,
struct ccw_driver *cdrv, int num_devices,
const char *buf);