s5pc210: adc: use the common accessor function
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 9 Nov 2010 05:48:47 +0000 (14:48 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 9 Nov 2010 05:48:47 +0000 (14:48 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/include/asm/arch-s5pc2xx/cpu.h
board/samsung/universal_c210/universal.c

index 402d21e..45eb174 100644 (file)
@@ -74,6 +74,7 @@ static inline unsigned int samsung_get_base_##device(void)    \
                return 0;                                       \
 }
 
+SAMSUNG_BASE(adc, ADC_BASE)
 SAMSUNG_BASE(clock, CLOCK_BASE)
 SAMSUNG_BASE(fimd, FIMD_BASE)
 SAMSUNG_BASE(gpio_part1, GPIO_PART1_BASE)
index 44a61a4..8ca7130 100644 (file)
@@ -1103,7 +1103,7 @@ void init_panel_info(vidinfo_t *vid)
 
 static unsigned short get_adc_value(int channel)
 {
-       struct s5p_adc *adc = (struct s5p_adc *)S5PC210_ADC_BASE;
+       struct s5p_adc *adc = (struct s5p_adc *)samsung_get_adc_base();
        unsigned short ret = 0;
        unsigned int reg;
        unsigned int loop = 0;