diff options
Diffstat (limited to 'drivers/power/jz4740-battery.c')
-rw-r--r-- | drivers/power/jz4740-battery.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index 8dbc7bfaab1..ffbed5e5b94 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c | |||
@@ -173,16 +173,14 @@ static void jz_battery_external_power_changed(struct power_supply *psy) | |||
173 | { | 173 | { |
174 | struct jz_battery *jz_battery = psy_to_jz_battery(psy); | 174 | struct jz_battery *jz_battery = psy_to_jz_battery(psy); |
175 | 175 | ||
176 | cancel_delayed_work(&jz_battery->work); | 176 | mod_delayed_work(system_wq, &jz_battery->work, 0); |
177 | schedule_delayed_work(&jz_battery->work, 0); | ||
178 | } | 177 | } |
179 | 178 | ||
180 | static irqreturn_t jz_battery_charge_irq(int irq, void *data) | 179 | static irqreturn_t jz_battery_charge_irq(int irq, void *data) |
181 | { | 180 | { |
182 | struct jz_battery *jz_battery = data; | 181 | struct jz_battery *jz_battery = data; |
183 | 182 | ||
184 | cancel_delayed_work(&jz_battery->work); | 183 | mod_delayed_work(system_wq, &jz_battery->work, 0); |
185 | schedule_delayed_work(&jz_battery->work, 0); | ||
186 | 184 | ||
187 | return IRQ_HANDLED; | 185 | return IRQ_HANDLED; |
188 | } | 186 | } |