core: Disable probe() as well as init() in case of disable_auto_init 23/290323/4
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 23 Mar 2023 01:08:06 +0000 (10:08 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 27 Mar 2023 04:51:06 +0000 (13:51 +0900)
commita40eefb1374eac193ec70a38f371d9e237bcf459
tree33b057f82e9f8d0f1e2f7898fa13d142b2c87d61
parent4fe6d224bd127235118705c8668f5337db83d64a
core: Disable probe() as well as init() in case of disable_auto_init

The disable_auto_init was orignally intended to prevent a module from
being initialized automatically by the deviced's initializing process.
Instead, it gives its initialization responsibility to another module.
Commonly, a pair of core module and its subordinate plugin module use
this disable_auto_init feature. Core module is declared without
disable_auto_init whereas plugin module is declared with it. In this
manner, the core module is automatically initialized by the deviced,
and it triggers its plugin module that wouldn't have been initialized
automatically by the deviced. In this sense, keeping order between core
and plugin module, it is proper to prevent probe() as well as init()
for module declared with disable_auto_init.

Change-Id: Idb9af18342ac205962b50b4188bd8cf965a5be40
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/core/devices.c