Skip to content

Commit

Permalink
resource: ubridge: adapt sid_ucmd_dev_get_ready calls for recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Sep 1, 2023
1 parent cfc8aee commit ee5398a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -4029,7 +4029,7 @@ static int _set_device_kv_records(sid_resource_t *cmd_res)
return -1;
}

if (sid_ucmd_dev_get_ready(NULL, ucmd_ctx) == DEV_RDY_UNDEFINED)
if (sid_ucmd_dev_get_ready(NULL, ucmd_ctx, 0) == DEV_RDY_UNDEFINED)
sid_ucmd_dev_set_ready(NULL, ucmd_ctx, DEV_RDY_UNPROCESSED);

return _refresh_device_hierarchy_from_sysfs(cmd_res);
Expand Down Expand Up @@ -4230,7 +4230,7 @@ static int _cmd_exec_scan_exit(struct cmd_exec_arg *exec_arg)
{
struct sid_ucmd_ctx *ucmd_ctx = sid_resource_get_data(exec_arg->cmd_res);

if (sid_ucmd_dev_get_ready(NULL, ucmd_ctx) == DEV_RDY_UNPROCESSED)
if (sid_ucmd_dev_get_ready(NULL, ucmd_ctx, 0) == DEV_RDY_UNPROCESSED)
sid_ucmd_dev_set_ready(NULL, ucmd_ctx, DEV_RDY_PUBLIC);

if (exec_arg->block_mod_iter) {
Expand Down

0 comments on commit ee5398a

Please sign in to comment.