diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-01-26 08:10:41 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:10:58 -0500 |
commit | 25b7bb5838ab81b68a9de72df577103d8b4aba3c (patch) | |
tree | ccbef7d152370e7a770788c103776af0fbe7fc47 /drivers/s390/cio/css.h | |
parent | 98c13c283a4e8b7f844f1f470abd7c756248fcc4 (diff) |
[S390] cio: Add css_driver_{register,unregister}.
Add wrapper functions for driver_register and driver_unregister so
that css drivers don't need to muck with struct device_driver
directly.
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/css.h')
-rw-r--r-- | drivers/s390/cio/css.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.h b/drivers/s390/cio/css.h index 32acd24a407c..c9fd600411c4 100644 --- a/drivers/s390/cio/css.h +++ b/drivers/s390/cio/css.h | |||
@@ -132,6 +132,7 @@ struct css_driver { | |||
132 | int (*probe)(struct subchannel *); | 132 | int (*probe)(struct subchannel *); |
133 | int (*remove)(struct subchannel *); | 133 | int (*remove)(struct subchannel *); |
134 | void (*shutdown)(struct subchannel *); | 134 | void (*shutdown)(struct subchannel *); |
135 | const char *name; | ||
135 | }; | 136 | }; |
136 | 137 | ||
137 | #define to_cssdriver(n) container_of(n, struct css_driver, drv) | 138 | #define to_cssdriver(n) container_of(n, struct css_driver, drv) |
@@ -141,6 +142,9 @@ struct css_driver { | |||
141 | */ | 142 | */ |
142 | extern struct bus_type css_bus_type; | 143 | extern struct bus_type css_bus_type; |
143 | 144 | ||
145 | extern int css_driver_register(struct css_driver *); | ||
146 | extern void css_driver_unregister(struct css_driver *); | ||
147 | |||
144 | extern void css_sch_device_unregister(struct subchannel *); | 148 | extern void css_sch_device_unregister(struct subchannel *); |
145 | extern struct subchannel * get_subchannel_by_schid(struct subchannel_id); | 149 | extern struct subchannel * get_subchannel_by_schid(struct subchannel_id); |
146 | extern int css_init_done; | 150 | extern int css_init_done; |