mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
greybus: svc: clean up svc initialisation
Make sure to initialise the svc device fully before adding it to the host device. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
efe6ef76ba
commit
6106e51b74
1 changed files with 1 additions and 2 deletions
|
|
@ -699,6 +699,7 @@ static int gb_svc_connection_init(struct gb_connection *connection)
|
|||
|
||||
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;
|
||||
|
|
@ -708,8 +709,6 @@ static int gb_svc_connection_init(struct gb_connection *connection)
|
|||
WARN_ON(connection->hd->initial_svc_connection);
|
||||
connection->hd->initial_svc_connection = connection;
|
||||
|
||||
ida_init(&svc->device_id_map);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue