Skip to content

Commit

Permalink
apps: demos: update to hand rproc for cleanup
Browse files Browse the repository at this point in the history
As rproc is needed to remove virtio device from remoteproc_virtio device
make sure this is handed off too

Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
  • Loading branch information
Ben Levinsky authored and edmooring committed Oct 26, 2020
1 parent dc6ee46 commit 59eaa48
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/examples/echo/rpmsg-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/echo/rpmsg-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/matrix_multiply/matrix_multiply.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/matrix_multiply/matrix_multiplyd.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/rpc_demo/rpc_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
4 changes: 2 additions & 2 deletions apps/examples/rpc_demo/rpc_demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void kill_action_handler(int signum)
terminate_rpc_app();

if (rpdev)
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
if (platform)
platform_cleanup(platform);
}
Expand Down Expand Up @@ -360,7 +360,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/rpmsg_sample_echo/rpmsg-sample-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/rpmsg_sample_echo/rpmsg-sample-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/tests/msg/rpmsg-flood-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/tests/msg/rpmsg-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/tests/msg/rpmsg-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ int main(int argc, char *argv[])
ret = -1;
} else {
app(rpdev, platform);
platform_release_rpmsg_vdev(rpdev);
platform_release_rpmsg_vdev(rpdev, platform);
ret = 0;
}
}
Expand Down

0 comments on commit 59eaa48

Please sign in to comment.