aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device_ops.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2006-10-11 09:31:38 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-10-11 09:31:38 -0400
commit789642680518b28e7dc13f96061460a8238ec622 (patch)
tree144df81a9154783e1b0299e66679099e3ddef1a4 /drivers/s390/cio/device_ops.c
parent715d854bc215bbcca35097176d674c3ac58a085c (diff)
[S390] cio: Use ccw_dev_id and subchannel_id in ccw_device_private
Use the proper structures to identify device and subchannel. Change get_disc_ccwdev_by_devno() to get_disc_ccwdev_by_dev_id(). 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_ops.c')
-rw-r--r--drivers/s390/cio/device_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c
index 84b9b18eabc2..96219935a06a 100644
--- a/drivers/s390/cio/device_ops.c
+++ b/drivers/s390/cio/device_ops.c
@@ -592,13 +592,13 @@ ccw_device_get_chp_desc(struct ccw_device *cdev, int chp_no)
592int 592int
593_ccw_device_get_subchannel_number(struct ccw_device *cdev) 593_ccw_device_get_subchannel_number(struct ccw_device *cdev)
594{ 594{
595 return cdev->private->sch_no; 595 return cdev->private->schid.sch_no;
596} 596}
597 597
598int 598int
599_ccw_device_get_device_number(struct ccw_device *cdev) 599_ccw_device_get_device_number(struct ccw_device *cdev)
600{ 600{
601 return cdev->private->devno; 601 return cdev->private->dev_id.devno;
602} 602}
603 603
604 604