mfd: Fix jz4740_adc_set_enabled
When enabled is false, clear BIT(engine) of JZ_REG_ADC_ENABLE register. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Родитель
d1f92f0575
Коммит
f9c28019d4
|
@ -153,7 +153,7 @@ static inline void jz4740_adc_set_enabled(struct jz4740_adc *adc, int engine,
|
|||
if (enabled)
|
||||
val |= BIT(engine);
|
||||
else
|
||||
val &= BIT(engine);
|
||||
val &= ~BIT(engine);
|
||||
writeb(val, adc->base + JZ_REG_ADC_ENABLE);
|
||||
|
||||
spin_unlock_irqrestore(&adc->lock, flags);
|
||||
|
|
Загрузка…
Ссылка в новой задаче