diff options
author | Rhyland Klein <rklein@nvidia.com> | 2011-05-24 15:06:50 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-07-08 08:53:07 -0400 |
commit | ee177d96e0ff497c46b2fe5c3b49e47810b5a8ca (patch) | |
tree | 615f8ecd71dbcd4ae74de9f9e5536bb5082005a6 /drivers/power/bq20z75.c | |
parent | 58ddafae2d7102d8f493840cb7aca0b4b2326b2a (diff) |
bq20z75: Enable detection after registering
Need to enable detection, which is also blocking the unit conversion logic
after registering the power_supply.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/bq20z75.c')
-rw-r--r-- | drivers/power/bq20z75.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c index e1adc0e027ac..9c5e5beda3a8 100644 --- a/drivers/power/bq20z75.c +++ b/drivers/power/bq20z75.c | |||
@@ -702,6 +702,8 @@ skip_gpio: | |||
702 | 702 | ||
703 | INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work); | 703 | INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work); |
704 | 704 | ||
705 | bq20z75_device->enable_detection = true; | ||
706 | |||
705 | return 0; | 707 | return 0; |
706 | 708 | ||
707 | exit_psupply: | 709 | exit_psupply: |