aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2006-12-08 09:54:21 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-12-08 09:54:21 -0500
commit7674da77cb2d27ae6559c55151da171ceb02beb4 (patch)
treedca2646cd8d6d2a36cbddbeb4f38fab2e12e8f7b /drivers/s390/cio/css.c
parent34249d0f9243fce773c2fa352934ba108320e234 (diff)
[S390] Some preparations for the dynamic subchannel mapping patch.
- Move adding subchannel attributes to css_register_subchannel(). - Don't call device_trigger_reprobe() for non-operational devices. - Introduce io_subchannel_create_ccwdev(). Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/css.c')
-rw-r--r--drivers/s390/cio/css.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 26cf2f5ae2e7..55895c83d499 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -135,14 +135,19 @@ css_register_subchannel(struct subchannel *sch)
135 sch->dev.parent = &css[0]->device; 135 sch->dev.parent = &css[0]->device;
136 sch->dev.bus = &css_bus_type; 136 sch->dev.bus = &css_bus_type;
137 sch->dev.release = &css_subchannel_release; 137 sch->dev.release = &css_subchannel_release;
138 138
139 /* make it known to the system */ 139 /* make it known to the system */
140 ret = css_sch_device_register(sch); 140 ret = css_sch_device_register(sch);
141 if (ret) 141 if (ret) {
142 printk (KERN_WARNING "%s: could not register %s\n", 142 printk (KERN_WARNING "%s: could not register %s\n",
143 __func__, sch->dev.bus_id); 143 __func__, sch->dev.bus_id);
144 else 144 return ret;
145 css_get_ssd_info(sch); 145 }
146 css_get_ssd_info(sch);
147 ret = subchannel_add_files(&sch->dev);
148 if (ret)
149 printk(KERN_WARNING "%s: could not add attributes to %s\n",
150 __func__, sch->dev.bus_id);
146 return ret; 151 return ret;
147} 152}
148 153