diff options
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r-- | drivers/s390/cio/device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index d3127018fb81..6d714cf55064 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -1259,6 +1259,9 @@ static int io_subchannel_probe(struct subchannel *sch) | |||
1259 | return 0; | 1259 | return 0; |
1260 | } | 1260 | } |
1261 | io_subchannel_init_fields(sch); | 1261 | io_subchannel_init_fields(sch); |
1262 | rc = cio_commit_config(sch); | ||
1263 | if (rc) | ||
1264 | goto out_schedule; | ||
1262 | rc = sysfs_create_group(&sch->dev.kobj, | 1265 | rc = sysfs_create_group(&sch->dev.kobj, |
1263 | &io_subchannel_attr_group); | 1266 | &io_subchannel_attr_group); |
1264 | if (rc) | 1267 | if (rc) |
@@ -1722,6 +1725,9 @@ static int ccw_device_console_enable(struct ccw_device *cdev, | |||
1722 | sch->private = cio_get_console_priv(); | 1725 | sch->private = cio_get_console_priv(); |
1723 | memset(sch->private, 0, sizeof(struct io_subchannel_private)); | 1726 | memset(sch->private, 0, sizeof(struct io_subchannel_private)); |
1724 | io_subchannel_init_fields(sch); | 1727 | io_subchannel_init_fields(sch); |
1728 | rc = cio_commit_config(sch); | ||
1729 | if (rc) | ||
1730 | return rc; | ||
1725 | sch->driver = &io_subchannel_driver; | 1731 | sch->driver = &io_subchannel_driver; |
1726 | /* Initialize the ccw_device structure. */ | 1732 | /* Initialize the ccw_device structure. */ |
1727 | cdev->dev.parent= &sch->dev; | 1733 | cdev->dev.parent= &sch->dev; |