diff options
-rw-r--r-- | drivers/s390/cio/cio.c | 5 | ||||
-rw-r--r-- | drivers/s390/cio/css.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index 390b4e96fd0d..fe18ef691bb7 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c | |||
@@ -564,11 +564,6 @@ int cio_validate_subchannel(struct subchannel *sch, struct subchannel_id schid) | |||
564 | goto out; | 564 | goto out; |
565 | } | 565 | } |
566 | mutex_init(&sch->reg_mutex); | 566 | mutex_init(&sch->reg_mutex); |
567 | /* Set a name for the subchannel */ | ||
568 | if (cio_is_console(schid)) | ||
569 | sch->dev.init_name = cio_get_console_sch_name(schid); | ||
570 | else | ||
571 | dev_set_name(&sch->dev, "0.%x.%04x", schid.ssid, schid.sch_no); | ||
572 | 567 | ||
573 | /* | 568 | /* |
574 | * The first subchannel that is not-operational (ccode==3) | 569 | * The first subchannel that is not-operational (ccode==3) |
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 40d4b3093b71..0dc6f6d26287 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c | |||
@@ -183,6 +183,11 @@ 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)) | ||
187 | sch->dev.init_name = cio_get_console_sch_name(sch->schid); | ||
188 | else | ||
189 | dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid, | ||
190 | sch->schid.sch_no); | ||
186 | ret = device_register(&sch->dev); | 191 | ret = device_register(&sch->dev); |
187 | mutex_unlock(&sch->reg_mutex); | 192 | mutex_unlock(&sch->reg_mutex); |
188 | return ret; | 193 | return ret; |