resource: Add the new device ops create/delete 80/279980/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 18 Aug 2022 11:23:56 +0000 (20:23 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 22 Aug 2022 23:37:48 +0000 (08:37 +0900)
commit4b3c9315834e561b5bd21be04f013e8717150797
tree1bc9a87765009b34f7df1fff92d51f3bbd30f372
parent5d39adfca161641bcedbc037abb2f65f033e7fb9
resource: Add the new device ops create/delete

To separate initialization and instance creation on resource driver,
the new ops create/delete are introduced. Now, each operation is
used as below:
 - init: Setup the common contexts for resource (called once)
 - exit: Clear the init-ed contexts (called once)
 - create: Create resource instance with an individual context
 - delete: Free own context and remove resource instance

Change-Id: I4987f26afd6de7e7ec0b1d8ed6a724acbf55e374
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/resource.h
src/util/resource.c