]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/remoteproc/omap_remoteproc.c
remoteproc: simplify unregister/free interfaces
authorOhad Ben-Cohen <ohad@wizery.com>
Mon, 2 Jul 2012 08:41:16 +0000 (11:41 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Thu, 5 Jul 2012 21:53:25 +0000 (00:53 +0300)
commitc6b5a27628faf6657b741d828a1462d832d0dbc5
tree3f5bcb10c6d2b1e395330536476d471415632832
parent7183a2a799b81490354973117ecd810c23cdc668
remoteproc: simplify unregister/free interfaces

Simplify the unregister/free interfaces, and make them easier
to understand and use, by moving to a symmetric and consistent
alloc() -> register() -> unregister() -> free() flow.

To create and register an rproc instance, one needed to invoke
rproc_alloc() followed by rproc_register().

To unregister and free an rproc instance, one now needs to invoke
rproc_unregister() followed by rproc_free().

Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Documentation/remoteproc.txt
drivers/remoteproc/omap_remoteproc.c
drivers/remoteproc/remoteproc_core.c