Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283450
b: refs/heads/master
c: 8cfaaa8
h: refs/heads/master
v: v3
  • Loading branch information
Pali Rohár authored and Anton Vorontsov committed Nov 25, 2011
1 parent ec0cb62 commit 66baa4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6cd4f267d442f2ce279024adb03a69e8608e0f6
refs/heads/master: 8cfaaa811894a3ae2d7360a15a6cfccff3ebc7db
8 changes: 8 additions & 0 deletions trunk/drivers/power/bq27x00_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,14 @@ static int bq27x00_powersupply_init(struct bq27x00_device_info *di)

static void bq27x00_powersupply_unregister(struct bq27x00_device_info *di)
{
/*
* power_supply_unregister call bq27x00_battery_get_property which
* call bq27x00_battery_poll.
* Make sure that bq27x00_battery_poll will not call
* schedule_delayed_work again after unregister (which cause OOPS).
*/
poll_interval = 0;

cancel_delayed_work_sync(&di->work);

power_supply_unregister(&di->bat);
Expand Down

0 comments on commit 66baa4c

Please sign in to comment.