msm: subsystem_restart: Correct state transition even in absence of PIL
In case the subsystem does not use the PIL framework, make sure
that when subsystem_get() is called, the state of the subsystem
is transitioned to SUBSYSTEM_ONLINE before returning success from
that API. Otherwise, the state would remain initialized to
SUBSYSTEM_OFFLINE even though the subsystem is up and running.
Change-Id: I4e608a2d9f9463c1b7d173080e1fcb4b98dc7083
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
1 file changed