]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: SAMSUNG: use regulator VDD for ADC
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 20 Jul 2011 12:08:17 +0000 (21:08 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 20 Jul 2011 14:38:50 +0000 (23:38 +0900)
commitf462904ef1508c0a2cc22c65478a7be0cd89f47a
tree4e2181469a87c4ed89c6c2b95124a5592e4fd37f
parent56c03d91f7f44991870f3f79b3067d40249b7bb9
ARM: SAMSUNG: use regulator VDD for ADC

This patch allows the Samsung ADC driver to enable VDD regulator
at probe and resume and to disable at exit and suspend.
In a platform where ADC's VDD regulator is not "always-on", this
control is required although this patch does not provide fine-grained
power control (turning on the regulator only when being accessed).

However, if VDD regulator ("vdd" for the adc device) is not provided,
the regulator control will not be activated because there are platforms
that do not provide regulator for ADC device.

arch_initcall has been modified to module_init in order to allow
regulators to be available at probe.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/adc.c