-@@ -47,6 +47,8 @@ struct jz_battery {
-
- struct power_supply battery;
- struct delayed_work work;
-+
-+ struct mutex lock;
- };
-
- static inline struct jz_battery *psy_to_jz_battery(struct power_supply *psy)
-@@ -68,6 +70,8 @@ static long jz_battery_read_voltage(stru
- unsigned long val;
- long voltage;
-
-+ mutex_lock(&battery->lock);
-+
- INIT_COMPLETION(battery->read_completion);
-
- enable_irq(battery->irq);
-@@ -91,6 +95,8 @@ static long jz_battery_read_voltage(stru
- battery->cell->disable(battery->pdev);
- disable_irq(battery->irq);
-
-+ mutex_unlock(&battery->lock);
-+
- return voltage;
- }
-
-@@ -240,6 +246,11 @@ static int __devinit jz_battery_probe(st