diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-07-14 03:59:03 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-07-14 04:02:12 -0400 |
commit | f08adc008d84f6b03d377ede951e29ed169e76e2 (patch) | |
tree | 5c8c90f6b3710a4f04f23d25e735ce4108fdc553 /drivers/s390/cio/device.c | |
parent | 99611f87176b2a908d8c66ab19a5fc550a3cd13a (diff) |
[S390] css: Use css_device_id for bus matching.
css_device_id exists, so use it for determining the right driver
(and add a match_flags which is always 1 for valid types).
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r-- | drivers/s390/cio/device.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 522d47afc950..c904cb84d75e 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -131,9 +131,15 @@ static int io_subchannel_sch_event(struct subchannel *, int); | |||
131 | static int io_subchannel_chp_event(struct subchannel *, struct chp_link *, | 131 | static int io_subchannel_chp_event(struct subchannel *, struct chp_link *, |
132 | int); | 132 | int); |
133 | 133 | ||
134 | static struct css_device_id io_subchannel_ids[] = { | ||
135 | { .match_flags = 0x1, .type = SUBCHANNEL_TYPE_IO, }, | ||
136 | { /* end of list */ }, | ||
137 | }; | ||
138 | MODULE_DEVICE_TABLE(css, io_subchannel_ids); | ||
139 | |||
134 | static struct css_driver io_subchannel_driver = { | 140 | static struct css_driver io_subchannel_driver = { |
135 | .owner = THIS_MODULE, | 141 | .owner = THIS_MODULE, |
136 | .subchannel_type = SUBCHANNEL_TYPE_IO, | 142 | .subchannel_type = io_subchannel_ids, |
137 | .name = "io_subchannel", | 143 | .name = "io_subchannel", |
138 | .irq = io_subchannel_irq, | 144 | .irq = io_subchannel_irq, |
139 | .sch_event = io_subchannel_sch_event, | 145 | .sch_event = io_subchannel_sch_event, |