Make sure to initialise the svc device fully before adding it to the
host device.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
dev_set_name(&svc->dev, "%d-svc", hd->bus_id);
+ ida_init(&svc->device_id_map);
svc->state = GB_SVC_STATE_RESET;
svc->connection = connection;
connection->private = svc;
WARN_ON(connection->hd->initial_svc_connection);
connection->hd->initial_svc_connection = connection;
- ida_init(&svc->device_id_map);
-
return 0;
}