Re: [PATCH] mfd: jz4740-adc - fix jz4740_adc_set_enabled

From: Samuel Ortiz
Date: Tue Oct 19 2010 - 05:12:49 EST


Hi Axel,

On Thu, Oct 07, 2010 at 03:51:20PM +0800, Axel Lin wrote:
> When enabled is false, clear BIT(engine) of JZ_REG_ADC_ENABLE register.
Patch applied, thanks.

Cheers,
Samuel.


> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> ---
> drivers/mfd/jz4740-adc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/jz4740-adc.c b/drivers/mfd/jz4740-adc.c
> index 3ad492c..9dd1b33 100644
> --- a/drivers/mfd/jz4740-adc.c
> +++ b/drivers/mfd/jz4740-adc.c
> @@ -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);
> --
> 1.7.2
>
>
>

--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/