From 4b67cfb58ce2a66021d2882f9a842541f3503bcd Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Wed, 27 Oct 2010 14:11:36 +0000 Subject: ADC and battery fixes * Fix concurrent battery readings * Add missing kfree in battery driver remove * Fix disabling of a ADC component SVN-Revision: 23670 --- .../xburst/patches-2.6.36/301-mfd-adc-fixes.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 target/linux/xburst/patches-2.6.36/301-mfd-adc-fixes.patch (limited to 'target/linux/xburst/patches-2.6.36/301-mfd-adc-fixes.patch') diff --git a/target/linux/xburst/patches-2.6.36/301-mfd-adc-fixes.patch b/target/linux/xburst/patches-2.6.36/301-mfd-adc-fixes.patch new file mode 100644 index 0000000..173a0ee --- /dev/null +++ b/target/linux/xburst/patches-2.6.36/301-mfd-adc-fixes.patch @@ -0,0 +1,25 @@ +From 1abac8c26df9112efee5da078f163b1c32075037 Mon Sep 17 00:00:00 2001 +From: Axel Lin +Date: Thu, 7 Oct 2010 15:51:20 +0800 +Subject: [PATCH] mfd: Fix jz4740_adc_set_enabled + +When enabled is false, clear BIT(engine) of JZ_REG_ADC_ENABLE register. + +Signed-off-by: Axel Lin +Acked-by: Lars-Peter Clausen +Signed-off-by: Samuel Ortiz +--- + drivers/mfd/jz4740-adc.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +--- a/drivers/mfd/jz4740-adc.c ++++ b/drivers/mfd/jz4740-adc.c +@@ -154,7 +154,7 @@ static inline void jz4740_adc_set_enable + 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); -- cgit v1.1