summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c b/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c
index 9547dd8c4f..bae845695a 100644
--- a/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c
@@ -66,7 +66,7 @@ unsigned int battery_adc_voltage(void)
66 int adc_val, irq_status; 66 int adc_val, irq_status;
67 unsigned char buf[2]; 67 unsigned char buf[2];
68 68
69 irq_status = disable_interrupt_save(IRQ_FIQ_DISABLED); 69 irq_status = disable_irq_save();
70 pcf50606_write(PCF5060X_ADCC2, 0x1); 70 pcf50606_write(PCF5060X_ADCC2, 0x1);
71 pcf50606_read_multiple(PCF5060X_ADCS1, buf, 2); 71 pcf50606_read_multiple(PCF5060X_ADCS1, buf, 2);
72 restore_interrupt(irq_status); 72 restore_interrupt(irq_status);