drivers: fix section mismatch in qcom's regulator drivers
Section mismatch was warned after upstream commit 1b9980fb24f6
finally fixed modpost's ability to detect EXPORT_SYMBOL plus __init
or __exit. Qcom's qpnp and stub regulator drivers have both __init
and EXPORT_SYMBOL.
- This particular 4.9 kernel does not build anything into modules.
- Currently I do not see any code using qpnp_regulator_init or
regulator_stub_init outside its own translation unit.
Therefore, similar to d336e9a71eed, just unexport the symbol.
Also, according to the kernel-hacking doc [1], "it makes no sense
for a function marked with __init to be exported to modules with
EXPORT_SYMBOL() or EXPORT_SYMBOL_GPL()" because functions marked
with __init are dropped after boot is complete.
[1] https://docs.kernel.org/kernel-hacking/hacking.html#init-exit-initdata
Change-Id: I04f078a0794419831f4d54ffa4c24c8184ab9e30
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2 files changed