• MyungJoo Ham's avatar
    ARM: SAMSUNG: use regulator VDD for ADC · f462904e
    MyungJoo Ham authored
    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: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
    Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
    f462904e
adc.c 11 KB