|
@@ -134,14 +134,14 @@ static int vfio_ccw_sch_probe(struct subchannel *sch)
|
|
if (ret)
|
|
if (ret)
|
|
goto out_free;
|
|
goto out_free;
|
|
|
|
|
|
- ret = vfio_ccw_mdev_reg(sch);
|
|
|
|
- if (ret)
|
|
|
|
- goto out_disable;
|
|
|
|
-
|
|
|
|
INIT_WORK(&private->io_work, vfio_ccw_sch_io_todo);
|
|
INIT_WORK(&private->io_work, vfio_ccw_sch_io_todo);
|
|
atomic_set(&private->avail, 1);
|
|
atomic_set(&private->avail, 1);
|
|
private->state = VFIO_CCW_STATE_STANDBY;
|
|
private->state = VFIO_CCW_STATE_STANDBY;
|
|
|
|
|
|
|
|
+ ret = vfio_ccw_mdev_reg(sch);
|
|
|
|
+ if (ret)
|
|
|
|
+ goto out_disable;
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
out_disable:
|
|
out_disable:
|