]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: s2mps11: Fix section mismatch
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 3 Mar 2014 15:53:51 +0000 (16:53 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 4 Mar 2014 03:01:57 +0000 (11:01 +0800)
commitccf91ca6bdbeb94b69236ab03de2311900562599
tree0ddb76ef04b2d6eb0337fc0f492569cda78b73f2
parent70bfcbe679e002dd6c4014d299279a2296790252
regulator: s2mps11: Fix section mismatch

Remove __initconst from regulator_desc array because this array is used
during probe and s2mps11_pmic_probe() is not in __init section. However
still select the number of supported regulators according to device ID
so the driver will be ready for adding support for S2MPS14 device.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s2mps11.c