thermal: msm: Remove early init from board file
Remove early initialization of TSENS
(temperature sensors driver) and Thermal drivers
from the existing board file. These can instead have
early driver initialization by changing the init calls
to use arch_init_call(). This allows having to support
boards that may not have a board file support.
Adding the initcall change within TSENS driver also
requires changing the client Thermal driver within
the same patch to avoid a crash due to dependencies
of early initialiation between these two drivers.
To avoid this also add support within the TSENS
driver to check for probe deferral and corresponding
changes to the Thermal driver to call this API.
Also include the data type check to avoid compilation
within the TSENS driver.
Change-Id: I787a95ae3a77d11ec8dcef8ce5eb404aabd27785
Signed-off-by:
Dipen Parmar <dipenp@codeaurora.org>
Loading
Please register or sign in to comment