aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2009-09-11 04:28:25 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-09-11 04:29:40 -0400
commit6ee4fec6be06f7d138860b37cba58982cc3ccb16 (patch)
tree51e7e2e1223d95f3c2d7a4a33c8f84758fe8690c /drivers/s390/cio/css.c
parentab6aae09024be1b039df441fa1b64dbe092d0acb (diff)
[S390] cio: remove subchannel init_name
We used the init_name to set the console subchannels name early at the boot stage. With the patch cio: fix memleak in subchannel validation we moved the name setting to the point where we actually register the console subchannel. At this time we can do dynamic allocations and therefore use dev_set_name. 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/css.c')
-rw-r--r--drivers/s390/cio/css.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 0dc6f6d26287..0a3ce6522f0b 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -183,11 +183,8 @@ static int css_sch_device_register(struct subchannel *sch)
183 int ret; 183 int ret;
184 184
185 mutex_lock(&sch->reg_mutex); 185 mutex_lock(&sch->reg_mutex);
186 if (cio_is_console(sch->schid)) 186 dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid,
187 sch->dev.init_name = cio_get_console_sch_name(sch->schid); 187 sch->schid.sch_no);
188 else
189 dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid,
190 sch->schid.sch_no);
191 ret = device_register(&sch->dev); 188 ret = device_register(&sch->dev);
192 mutex_unlock(&sch->reg_mutex); 189 mutex_unlock(&sch->reg_mutex);
193 return ret; 190 return ret;