mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
[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>
This commit is contained in:
committed by
Martin Schwidefsky
parent
ab6aae0902
commit
6ee4fec6be
@@ -183,11 +183,8 @@ static int css_sch_device_register(struct subchannel *sch)
|
||||
int ret;
|
||||
|
||||
mutex_lock(&sch->reg_mutex);
|
||||
if (cio_is_console(sch->schid))
|
||||
sch->dev.init_name = cio_get_console_sch_name(sch->schid);
|
||||
else
|
||||
dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid,
|
||||
sch->schid.sch_no);
|
||||
dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid,
|
||||
sch->schid.sch_no);
|
||||
ret = device_register(&sch->dev);
|
||||
mutex_unlock(&sch->reg_mutex);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user