summaryrefslogtreecommitdiff
path: root/hw/usb_cfs_client_common.c
diff options
context:
space:
mode:
authorHyotaek Shim <hyotaek.shim@samsung.com>2019-03-25 19:15:19 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2019-03-25 19:16:59 +0900
commit4f3e99a728ab80b4ecaeec13913cb27c30e801db (patch)
treef43a2d8f1fe607fdb4c9550001dd6816a96ec3b5 /hw/usb_cfs_client_common.c
parentaa29d5f78ec923d58421952a61e87af862a91b7e (diff)
downloadlibdevice-node-4f3e99a728ab80b4ecaeec13913cb27c30e801db.tar.gz
libdevice-node-4f3e99a728ab80b4ecaeec13913cb27c30e801db.tar.bz2
libdevice-node-4f3e99a728ab80b4ecaeec13913cb27c30e801db.zip
Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()submit/tizen/20190325.102033accepted/tizen/unified/20190326.024559
Change-Id: I94d972c7dc68d9e6b246702b9217d0b92c908d0c Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Diffstat (limited to 'hw/usb_cfs_client_common.c')
-rwxr-xr-xhw/usb_cfs_client_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/usb_cfs_client_common.c b/hw/usb_cfs_client_common.c
index 3a4246b..7f4de06 100755
--- a/hw/usb_cfs_client_common.c
+++ b/hw/usb_cfs_client_common.c
@@ -650,7 +650,7 @@ static int cfs_prep_ffs_service(const char *name, const char *instance,
if (ret < 0)
return ret;
- ret = systemd_start_unit_sync(socket_name, ".socket", -1);
+ ret = systemd_start_unit_wait_started(socket_name, ".socket", -1);
if (ret < 0)
goto umount_ffs;
@@ -925,8 +925,8 @@ int hw_cfs_gadget_close(struct hw_common *common)
fws = container_of(usb_func,
struct usb_function_with_service,
func);
- systemd_stop_unit_sync(fws->service, ".socket", -1);
- systemd_stop_unit_sync(fws->service, ".service", -1);
+ systemd_stop_unit_wait_stopped(fws->service, ".socket", -1);
+ systemd_stop_unit_wait_stopped(fws->service, ".service", -1);
}
}