summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/io_sch.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2011-03-15 17:08:27 +0100
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2011-03-15 17:08:23 +0100
commitf92519e83e3bd509cb861a946701a26f74cb77fa (patch)
treeb6da7f33d563dc5f8932a8e32ef1add9c01b763d /drivers/s390/cio/io_sch.h
parent97eb6bfcb942a59f5c8d273523d68c6a0f57a6f2 (diff)
downloadblackbird-op-linux-f92519e83e3bd509cb861a946701a26f74cb77fa.tar.gz
blackbird-op-linux-f92519e83e3bd509cb861a946701a26f74cb77fa.zip
[S390] css: move io_private to drv_data
Use the subchannels drv_data to access io_subchannel_private for io subchannels. 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/io_sch.h')
-rw-r--r--drivers/s390/cio/io_sch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/cio/io_sch.h b/drivers/s390/cio/io_sch.h
index 23f50ba50392..ba31ad88f4f7 100644
--- a/drivers/s390/cio/io_sch.h
+++ b/drivers/s390/cio/io_sch.h
@@ -18,7 +18,9 @@ struct io_subchannel_private {
} __packed options;
} __aligned(8);
-#define to_io_private(n) ((struct io_subchannel_private *)n->private)
+#define to_io_private(n) ((struct io_subchannel_private *) \
+ dev_get_drvdata(&(n)->dev))
+#define set_io_private(n, p) (dev_set_drvdata(&(n)->dev, p))
static inline struct ccw_device *sch_get_cdev(struct subchannel *sch)
{
OpenPOWER on IntegriCloud