Skip to content

Commit

Permalink
ARM: SAMSUNG: Fix mux bit modification in s3c_adc_select
Browse files Browse the repository at this point in the history
The mux bits in the adccon register should be cleared only
if muxing is really done in ADCCON and not another register.

This patch introduces a conditional for this.

Signed-off-by: Heiko Stuebner <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
  • Loading branch information
mmind authored and kgene committed Oct 12, 2011
1 parent 18c55cd commit df303e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/plat-samsung/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ static inline void s3c_adc_select(struct adc_device *adc,

client->select_cb(client, 1);

con &= ~S3C2410_ADCCON_MUXMASK;
if (cpu == TYPE_ADCV1 || cpu == TYPE_ADCV2)
con &= ~S3C2410_ADCCON_MUXMASK;
con &= ~S3C2410_ADCCON_STDBM;
con &= ~S3C2410_ADCCON_STARTMASK;

Expand Down

0 comments on commit df303e0

Please sign in to comment.