ipc: Open client after power on
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 3 Jul 2013 21:10:29 +0000 (23:10 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Wed, 3 Jul 2013 21:10:29 +0000 (23:10 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
ipc.c

diff --git a/ipc.c b/ipc.c
index b43e1c9..24df4b8 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -130,14 +130,6 @@ int ipc_fmt_create(struct ril_client *client)
                goto error_bootstrap;
        }
 
-       LOGD("Client open...");
-
-       rc = ipc_client_open(ipc_client);
-       if (rc < 0) {
-               LOGE("%s: failed to open ipc client", __func__);
-               goto error_open;
-       }
-
        LOGD("Client power on...");
 
        rc = ipc_client_power_on(ipc_client);
@@ -146,6 +138,14 @@ int ipc_fmt_create(struct ril_client *client)
                goto error_power_on;
        }
 
+       LOGD("Client open...");
+
+       rc = ipc_client_open(ipc_client);
+       if (rc < 0) {
+               LOGE("%s: failed to open ipc client", __func__);
+               goto error_open;
+       }
+
        LOGD("IPC FMT client done");
 
        return 0;